Appearance
24-bit fg (SGR 38;2)
SGR 38;2;R;G;B sets the foreground to a 24-bit RGB color. The sequence is
ESC [ 38;2;R;G;B m where R, G, B are 0-255. There is also a colon-separated variant ESC [ 38:2::R:G:B m per ITU T.416, but the semicolon format has wider compatibility.
This gives applications access to 16.7 million colors. Applications can check for truecolor support via COLORTERM=truecolor or COLORTERM=24bit in the environment.Supported by 6 of 6 backends (100%)
Support Matrix
| Backend | Version | Support | Notes |
|---|---|---|---|
| Alacritty | 0.26.0 | ✓ yes | |
| Ghostty | 1.3.1 | ✓ yes | |
| Kitty | 0.40.0 | ✓ yes | |
| vt100 | 0.1.0 | ✓ yes | |
| WezTerm | 0.1.0-fork.5 | ✓ yes | |
| xterm.js | 5.5.0 | ✓ yes |