Closed IanEdington closed 2 years ago
Hi, Not sure I can help, but I will try, let me ask - you say you've lost color - did it used to work ok with tmux-256color and now it no longer does ? If so, do you know what changed ? Your terminal or shell or tmux or tig version ?? Or is it that once you started using tmux-256color you no longer have colors in tig ? thx, -m
Thank you! Yes I used a custom version of xterm-256color
and it worked fine. I had to change to a standard terminfo so tried a couple others but tmux-256color
seems to be the best option. The only issue I've found with tmux-256color
is the tig
color.
Beside the header that tells us that your tmux-256color
is actually not a standard one, the interesting line in your infocmp output would be the one with pairs
. macOS stock ncurses version does not handle pairs#0x10000
and so far Homebrew maintainers have refused to use a newer version of ncurses in Tig recipe, so the only option we're left with is to use a patched terminfo.
Try
/usr/local/opt/ncurses/bin/infocmp -x tmux-256color | sed -e 's/pairs#0x10000/pairs#32767/' > tmux-256color.src
/usr/bin/tic -x tmux-256color.src
Note that the latest tmux version in Homebrew has been modified to use screen-256color
, but unfortunately this terminfo is also broken, at least on 10.11, so you will probably have to do the same to get a working one.
Unfortunately, that didn't work.
It sounds like I have a non-standard tmux-256color definition. I got it from invisible-island.net so I thought it would work. Do you know where I should get terminfo definitions if they aren't included on my system or is that generally not a good idea?
Since this is an issue with my setup, I'll close this ticket.
Thanks for the help!
invisible-island.net is just fine, you have to replace the pairs#10000 as well to use it with macOS ncurses version. You may want to try starting with an empty ~/.terminfo as it has more precedence than the system one.
For anyone who comes later this helped a lot:
https://gpanders.com/blog/the-definitive-guide-to-using-tmux-256color-on-macos/
@koutcher, your comment about pairs makes a lot more sense now. Thanks
Thanks for this awesome programme. I use it daily!
I've lost color in tig ðŸ˜
I'm using
TERM=tmux-256color
because it fixes some italic and true color issues I was having withscreen-256color
.here's some debug info that was asked on another issue:
I'm currently using
alias tig="TERM=screen-256color tig"
but I'd rather have it work properly with the TERM I have.