6

256 colors in putty, tmux/screen and vim

 1 year ago
source link: https://gist.github.com/limingjie/4975c36d13d0927613e6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

256 colors in putty, tmux/screen and vim · GitHub

Instantly share code, notes, and snippets.

256 colors in putty, tmux/screen and vim

#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 to xterm-256color

  • Add this line to ~/.tmux.conf

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

    Add this line to ~/.screenrc

    term "screen-256color"
    
  • Add these lines to ~/.vimrc

    if &term == "screen"
      set t_Co=256
    endif
    

View actural 256 colors by this script.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK