Appearance
Query Terminfo (XTGETTCAP) โ
ESC P + q hex-name ESC \\XTGETTCAP (DCS + q Pt ST) queries terminfo capabilities via DCS escape sequences. The terminal responds with the capability value, allowing applications to query terminal features without parsing terminfo databases. Used by notcurses and foot.
How this is tested: Send DCS + q 544e ST (hex-encoded query for TN capability), check for a DCS response.
Analysis2026-03-26
Supported by 3 of 13 backends (23%)
Terminal Applications โ
| Terminal | Version | Support | Notes |
|---|---|---|---|
| iTerm2 | 3.6.9 | โ yes | |
| Ghostty | 1.3.1 | โ yes | |
| VS Code | 1.112.0 | โ no | No XTGETTCAP response |
| Warp | 0.2026.03.18.08.24.03 | โ no | No XTGETTCAP response |
| Cursor | 2.6.21 | โ no | No XTGETTCAP response |
| tmux | 3.6a | โ no | tmux intercepts XTGETTCAP queries for its own terminfo, not the outer terminal's |
| Kitty | 0.46.2 | โ no | Headless mode has no output stream for XTGETTCAP responses |
| Terminal.app | 2.15 | โ no | No XTGETTCAP response |
| GNU Screen | 5.0.1 | โ no | Screen does not support XTGETTCAP |
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 | Headless mode has no output stream for XTGETTCAP responses |
| WezTerm | 0.1.0-fork.5 | ~ partial | Headless mode has no output stream for XTGETTCAP responses |
| vt100 | 0.2.1 | โ no | No output stream โ pure TypeScript emulator |