Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The correct configuration for alacritty and tmux color?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ManDay
Apprentice
Apprentice


Joined: 22 Jan 2008
Posts: 246

PostPosted: Tue Jun 01, 2021 7:18 am    Post subject: The correct configuration for alacritty and tmux color? Reply with quote

Since I accidentally deleted my tmux configuration, I found myself revisiting the problem of colors in terminals, specifically using alacritty (which does install a terminfo file and exports TERM=alacritty COLORTERM=truecolor).

To keep things simple (yet too complicated for me to figure out, I appears), I focus on getting things to work right in just 3 applications:

kakoune (editor)
weechat (irc)
bash (the prompt and `ls`)

And out of the box, pretty much everything is broken:

weechat in alacritty shows a reduced palette (no boldface)
bash in alacritty shows no colors at all
kakoune in alacritty looks fine

weechat in alacritty/tmux looks good
bash in alacritty/tmux looks good
kakoune in alacritty/tmux shows no colors at all

Setting "default-terminal alacritty" in tmux such that it changes TERM makes things look like outside of tmux. I tried various other combinations but in the end, there is always one or two of the three which don't show correctly.

Is there a proper, consistent solution for that (preferablly where the truecolor cap of alacritty is propagated properly)? Should this be filed as a bug on which of the programs? Is this unfixable or is there a workaround?
Back to top
View user's profile Send private message
fireficus
n00b
n00b


Joined: 16 Nov 2021
Posts: 1

PostPosted: Sat Jan 08, 2022 8:23 pm    Post subject: Reply with quote

Have you checked this?
https://wiki.gentoo.org/wiki/Alacritty#Colorless

Adding the following line in /etc/DIR_COLORS fixed the color problem in bash for me:
Code:
TERM alacritty
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Sat Jan 08, 2022 10:26 pm    Post subject: Reply with quote

Another option is to just change the TERM in Alacritty config:

~/.config/alacritty/alacritty.yml:
env:
  TERM: xterm-256color
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum