Appearance
DSR ?996 — color scheme query
DSR ?996 queries the terminal's current color scheme (dark or light). The query is
CSI ? 996 n and the response is CSI ? 997 ; Ps n where Ps is 1 for dark and 2 for light.
This is Contour's approach to color scheme detection, related to but distinct from Mode 2031 (which uses DECRPM to report and unsolicited DSR to notify of changes). DSR ?996 is a one-shot query that returns the current state, while Mode 2031 enables ongoing notifications when the scheme changes.How this is testedpartial
Send CSI ? 996 n and verify response matches CSI ? 997 ; Ps n format.
Send CSI ? 996 n and verify response matches CSI ? 997 ; Ps n format.
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.
Supported by 0 of 14 backends (0%)
Terminal Applications
| Terminal | Version | Support | Notes |
|---|---|---|---|
| iTerm2 | 3.6.9 | ? unknown | |
| Ghostty | 1.3.1 | ? unknown | |
| VS Code | ? unknown | ||
| Kitty | 0.46.2 | ? unknown | |
| Warp | ? unknown | ||
| Cursor | ? unknown | ||
| Terminal.app | ? unknown |