2008-06-28

256 color terminals

  • PuTTY 0.60: Settings > Window > Colours > Allow terminal to use xterm-256color mode
  • Ubuntu 6.06: apt-get install ncurses-term
  • Set TERM=xterm-256color
  • Compile screen: configure --enable-colors256
  • Edit .screenrc:
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
  • Start screen: screen -T xterm-256color
References: 256 color emacs + putty, 256 color xterm (including some 256 color schemes for vim)

No comments: