Summary: | x11-terms/alacritty-0.4.2: Missing terminfo capability | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vasilis Lourdas <bugs> |
Component: | Current packages | Assignee: | Georgy Yakovlev <gyakovlev> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | bugs, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Vasilis Lourdas
2020-04-20 20:46:56 UTC
Hi! new enough ncurses ships alacritty terminfo, it's upstream. > 6.2-r1 > qlist ncurses | grep alacritty > /usr/share/terminfo/a/alacritty > /usr/share/terminfo/a/alacritty-direct > /usr/share/terminfo/a/alacritty+common we used to generate one in the ebuild and stopped doing that, because of conflicts. I suggest just using. env: TERM: xterm-256color in alacritty.yml you don't really loose a lot that way, and if you ssh to a system that does not have alacritty terminfo file installed you still keep the colors. you have to have alacritty terminfo on a system you ssh to, not locally, for colors to work. but xterm-256 color is good workaround if systems you often ssh to have ancient ncurses. some history here: https://bugs.gentoo.org/690030 and here's some vim black magic for you.
it makes truecolor work on alacritty, screen and tmux. even if TERM=alacritty
>
> if &term =~# '^screen' || &term =~# '^tmux' || &term =~# '^alacritty'
> let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
> let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
> endif
> set termguicolors
>
(In reply to Georgy Yakovlev from comment #2) > and here's some vim black magic for you. > > it makes truecolor work on alacritty, screen and tmux. even if TERM=alacritty > > > > > if &term =~# '^screen' || &term =~# '^tmux' || &term =~# '^alacritty' > > let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" > > let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" > > endif > > set termguicolors > > Thank you for the tip and the information! |