Appearance
Foreground color query (OSC 10)
ESC ] 10 ; ? BELOSC 10 queries the terminal's default foreground color. The query is
ESC ] 10 ; ? ST and the terminal responds with the color in X11 rgb:RR/GG/BB format. Applications use this to detect light vs. dark themes and adapt their color schemes accordingly.How this is testedautomated
Query foreground color with
Query foreground color with
OSC 10 ; ? BEL, verify response matches OSC 10 ; rgb:... pattern via feedCapture.The same probe runs against headless backends (via Termless) and real terminal apps (via a daemon launched in each terminal). This lets us distinguish parser correctness from rendering correctness.
Analysis2026-04-06
Supported by 8 of 14 backends (57%)
Terminal Applications
| Terminal | Version | Support | Notes |
|---|---|---|---|
| iTerm2 | 3.6.9 | ✓ yes | |
| Ghostty | 1.3.1 | ✓ yes | |
| VS Code | ✓ yes | ||
| Warp | ✓ yes | ||
| Cursor | ✓ yes | ||
| Terminal.app | ✓ yes |
Headless Backends
Parser correctness only — a ✓ means the parser accepts the sequence.
| Backend | Version | Support | Notes |
|---|---|---|---|
| vterm | 0.2.0 | ✓ yes | |
| Alacritty | 0.26.0 | ~ partial | OSC 10 color query not exposed in headless mode |
| Kitty | 0.40.0 | ~ partial | OSC 10 color query not exposed via Python batch bridge |
| WezTerm | 0.1.0-fork.5 | ~ partial | OSC 10 color query not exposed in headless mode |
| vt100.js | 0.2.1 | ✗ no | Not implemented — pure TypeScript emulator |
| xterm.js | 5.5.0 | ✗ no | OSC 10 foreground color query not implemented in xterm.js |