Skip to content

Instantly share code, notes, and snippets.

@vic
Last active April 3, 2018 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vic/fa58918694af3b3767fbc7dc22cbc406 to your computer and use it in GitHub Desktop.
Save vic/fa58918694af3b3767fbc7dc22cbc406 to your computer and use it in GitHub Desktop.
Rebecca iterm2 colors

Install d12frosted/emacs-plus on mac patched for rich colors on terminals supporting direct color (like iterm2).

brew install emacs-plus --with-24bit-color

Generate the terminfo (see attached .src file)

Then run emacs/emacsclient with TERM set to xterm-24bits

# tic -x -o ~/.terminfo terminfo-24bit.src
# Use semicolon separators.
xterm-24bits|xterm with 24-bit direct color mode,
use=xterm-256color,
Tc,
setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment