I have 256 colors working just fine in konsole,
. I thought I'd give tmux
a try because, unlike screen, it seems to support vi
mode. However I find that the colors of my prompt show up and this is most likely because I have a 256 color mode prompt. What do I need to do to get tmux
to recognize all 256 colors?
Colors – Getting 256 Colors to Work in Tmux
colorskonsolesettingstmux
Best Answer
The Tmux FAQ explicitly advises against setting TERM to anything other than
screen
orscreen-256color
ortmux
ortmux-256color
in your shell init file, so don't do it!Here's what I use:
and in in my .tmux.conf:
Aliasing
tmux
to "tmux -2
" should also do the trick.And don't forget to restart your tmux server: (see @mast3r answer)