#256 colors in putty, tmux/screen and vim There is a detailed answer on stackoverflow. If you are looking for a short one, here it is.
-
putty
Set
Connection -> Data -> Terminal-type string
toxterm-256color
-
tmux
Add this line to
~/.tmux.conf
set -g default-terminal "screen-256color"
-
screen
Add this line to
~/.screenrc
term "screen-256color"
-
vim
Add these lines to
~/.vimrc
if &term == "screen" set t_Co=256 endif
View actural 256 colors by this script.