4

I noticed that on my Mac I don't have any colors in e.g., tig, weechat, htop or ranger. On my linux I do. It happens in all terminal apps I have (alacritty, iterm and Terminal.app), in zsh, fish and bash.

I'm at a loss how to debug this. My fish syntax highlighting works, ls has colors, nvim has colors, git diff has colors. It appears to happen only in such interactive CLI apps which, I assume, use ncurses

Vey
  • 171

2 Answers2

3

I had a .terminfo folder in my home folder, with data from invisible-island.net. Removing it brought back colors in the above mentioned commands. I then had to fix italics in tmux but that's another story (I installed the linked terminfo precisely in my efforts to fix italics in tmux.

Vey
  • 171
1

For me the cause of the problem was also a custom .terminfo. I wanted to keep the .terminfo (to get italics in tmux) so I for me the best solution is

alias tig='TERM=xterm-256color tig'

Using this alias the colors return to tig.