Skip to content

Instantly share code, notes, and snippets.

@sdawson
Created December 13, 2013 21:07
Show Gist options
  • Save sdawson/7951336 to your computer and use it in GitHub Desktop.
Save sdawson/7951336 to your computer and use it in GitHub Desktop.
Getting 256 colour to work on screen when starting up
With a version of screen that's been compiled to work with 256 colours:
1. Add the following into .screenrc
defbce on
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
term screen-256color-bce
2. Then start a screen session by typing:
TERM=xterm-256color screen
can use 256color2.pl script to check for 256 colour output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment