Obtaining 256 colors to operate in tmux

I have 256 colors functioning simply great in konsole,. I assumed I would certainly offer tmux a shot due to the fact that, unlike screen, it appears to sustain vi setting. Nonetheless I locate that the colors of my punctual show up and also this is more than likely due to the fact that I have a 256 shade setting motivate. What do I require to do to get tmux to identify all 256 colors?

2019-05-05 23:14:50
Source Share
Answers: 2

Try setup 256 colors clearly in your bashrc or zshrc :

export TERM=xterm-256color


export TERM=screen-256color

If you have troubles with tmux unclear the history colors appropriately when making use of the screen term setup, you can attempt :

export TERM=screen-256color-bce
2019-05-08 14:09:35

The Tmux FAQ clearly discourages establishing TERM to anything apart from screen or screen - 256color in your shell init documents, so do not do it!

Below's what I make use of :

~$ which tmux
tmux: aliased to TERM=xterm-256color tmux

and also in in my.tmux.conf :

set -g default-terminal "screen-256color"

Aliasing tmux to "tmux -2" need to additionally do the method.

2019-05-08 09:07:36