wiki.tau.garden

X11 Colors in the Terminal

Resources

Accepted Formats

Survey of terminal support (parsing) for various color formats for use with OSC 10 and friends.

Terminalrgb:<r>/<g>/<b>#<r><g><b>namedrgbi:<r>/<g>/<b>additional
htermyesyesyesno
xterm.jsyesyesnono
iTerm2yesyesnono
Terminal.app 1yesyesnoyes
Alacrittyyesyesnono
Contouryes 2yes 3nono
vteyesyesyes 4no
Konsole using QColorno 5yesyes 4no
QTerminalnononono
footyes 6yes 7nono
xterm (uses X11)yesyesyesyes
WezTermyes 6yesyesnohsl:..., css colors, transparent, none, clear
kittyyesyesyesno
Rioyesyesnono
rxvt-unicodeyesyes 7yesyes
mrxvtnononono
Etermnononono
anytermnononono
Terminologyyesyesnoyes
tmuxyesyesyesnocmyk:.., cmy:... both of which come from mintty
minttyyesyesyesnocmyk:.., cmy:..., rrr,ggg,bbb
Termuxyesyesnono
st (uses X11)yesyesyesyes
Windows Console Hostyesyesyesno

Emitted Formats

Survey of the format used by terminals in response to OSC 10 / OSC 11 queries.

Terminalrgb:<r>/<g>/<b>additional
hterm
xterm.js16-bit
iTerm216-bit 8
Terminal.app 116-bit
Alacritty16-bit
Contour16-bit
vte16-bi
Konsole16-bit
QTerminal
foot16-bit
xtermTODOTODO
WezTerm16-bit
kitty16-bit
Rio16-bit
rxvt-unicode16-bitrgba:<r>/<g>/<b>/<a>, 16-bit
mrxvt
Eterm
anyterm
Terminology16-bit#<r><g><b>, 8-bit
tmux16-bit
mintty16-bit
Termux16-bit
st16-bit
Windows Console Host

Questions

1

Tested without access to the source code.

2

Only 8-bit (i.e. two hex digits) per channel supported (e.g. rgb:fe/fe/fe but not rgb:f/f/f or rgb:fee/fee/fee)

3

Only one or two hex digits per channel supported (e.g. #fff or #fefefe but not #feefeefee)

4

Refers to the SVG color keyword names, not the X11 list.

5

Note that it still reports the color in the rgb:<r>/<g>/<b> format when queried.

6

In addition, colors with alpha are supported i.e rgba:<r>/<g>/<b>/<a>.

7

In addition, colors with alpha are supported i.e. [aa]#<r><g><b>.

8

But can be configured to use 8-bit color values.