Skip to content

Secondary Device Attributes (DA2)

Category: device · Tags: VT220 · Specification ↗

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.

Supported by 4 of 12 backends (33%)

Terminal Applications

TerminalVersionSupportNotes
iTerm23.6.9? unknown
Ghostty1.3.1? unknown
cmux0.62.2? unknown
Kitty0.46.2? unknown
VS Code1.112.0? unknown
Warp0.2026.03.18.08.24.03? unknown
Cursor2.6.21? unknown
Terminal.app2.15? unknown

Headless Backends

Parser correctness only — a means the parser accepts the sequence.

BackendVersionSupportNotes
Alacritty0.26.0✓ yes
vt1000.2.1✓ yes
vterm0.2.0✓ yes
WezTerm0.1.0-fork.5✓ yes

Powered by Termless
Playwright for Terminals