Skip to content

Secondary Device Attributes (DA2) โ€‹

Category: device ยท Tags: VT220 ยท Specification โ†—

ESC [ > c
DA2 (CSI > c) returns the terminal's type, firmware version, and ROM cartridge registration number. Modern terminals use DA2 to identify themselves โ€” e.g., xterm returns CSI > 41 ; version ; 0 c. This is commonly used for terminal detection.
How this is tested: Send CSI > c, check for a CSI > Pp ; Pv ; Pc c response via onResponse callback.
Analysis2026-03-26

Supported by all 8 tested terminals โ€” universal adoption. Part of the Modern TUI baseline.

Supported by 10 of 13 backends (77%)

Terminal Applications โ€‹

TerminalVersionSupportNotes
iTerm23.6.9โœ“ yes
Ghostty1.3.1โœ“ yes
VS Code1.112.0โœ“ yes
Warp0.2026.03.18.08.24.03โœ“ yes
Cursor2.6.21โœ“ yes
tmux3.6aโœ“ yes
Kitty0.46.2โœ“ yesHeadless mode has no output stream for DA2 responses
Terminal.app2.15โœ“ yes
GNU Screen5.0.1โœ“ yes

Headless Backends โ€‹

Parser correctness only โ€” a โœ“ means the parser accepts the sequence.

BackendVersionSupportNotes
vterm0.2.0โœ“ yes
Alacritty0.26.0~ partialHeadless mode has no output stream for DA2 responses
WezTerm0.1.0-fork.5~ partialHeadless mode has no output stream for DA2 responses
vt1000.2.1โœ— noNo output stream โ€” pure TypeScript emulator

Powered by Termless
Playwright for Terminals