Skip to content

Instantly share code, notes, and snippets.

@IsoLinearCHiP
Created November 20, 2014 22:24
Show Gist options
  • Select an option

  • Save IsoLinearCHiP/59efd306efe79c1781d4 to your computer and use it in GitHub Desktop.

Select an option

Save IsoLinearCHiP/59efd306efe79c1781d4 to your computer and use it in GitHub Desktop.
Proper Terminal colors in tmux and screen
# Append this to screenrc
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
term screen-256color
# Optionally: use current bg color for erased chars
# defbce on
# Append this to tmux.conf
set -g default-terminal "screen-256color"

If using Terminator make sure to set the TERM variable to "xterm-256color" currently I have only found a workaround for this by using a custom launch command:

TERM=xterm-256color bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment