Skip to content

Instantly share code, notes, and snippets.

@textshell
Last active May 9, 2020 22:02
Show Gist options
  • Save textshell/93ae4cbf4d8f93e26bdd1affda90318f to your computer and use it in GitHub Desktop.
Save textshell/93ae4cbf4d8f93e26bdd1affda90318f to your computer and use it in GitHub Desktop.
24 bit color sequence support in terminal implementations

Testcase:

echo -ne "\\e[38:2:0:255:0:0mitu\\033[m\n\\e[38:2:255:0:0mmod\\033[m\n\\e[38;2;255;0;0mbug\\033[m"

(yes = displays text in red; no = no color change; X = sequence partially parsed as text)

terminal itu mod bug
(sum) 8x yes, 3x X, 2x green 11x yes, 3x X, 1x black 19x yes
alacritty 0.4.1 no no yes
cool-retro-term 1.1.1 X X yes
eterm 0.9.6 no no no
iterm2 yes yes yes
Kitty 0.16 yes yes yes
Konsole 19.08.3 X X yes
mintty 3.1.4 yes yes yes
mlterm 3.8.9 no yes yes
libvterm 0.1.3 green yes yes
putty 0.73 no no yes
qterminal 0.14.1 X X yes
screen 4.8.0 ??? no no no
st 0.8.2 no no yes
Tera Term 4.105 green yes yes
Terminal.app no no no
terminology 1.6.0 yes yes yes
hterm yes yes yes
xterm.js yes black yes
tmux 3.0a yes yes yes
urxvt 9.22 no no no
urxvt cvs head no no yes
vte 0.60.0 no yes yes
xterm 353 yes yes yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment