# 256 color and true color support
set -g default-terminal "tmux-256color"
# CSI u key encoding support
set -s extended-keys on
set-option -ga terminal-overrides ",tmux-256color:Tc"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -ga terminal-features ",*:RGB"
# Compile with tic -x -o ~/.terminfo tmux-24bit.src
# Use semicolon separators.
xterm-256color|xterm with 24-bit direct color mode,
sitm=\E[3m, ritm=\E[23m,
use=xterm-256color,
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,
tmux-256color|tmux with 256 colors, with setb24/setf24 added for Emacs,
sitm=\E[3m, ritm=\E[23m,
smso=\E[7m, rmso=\E[27m,
use=tmux-256color,
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,