wire / terminal-csi / da

CSI DA — Device Attributes (primary / secondary / tertiary)

DA queries the terminal's identity. Primary DA (CSI c or CSI 0 c, final 'c') asks what the terminal is; the reply CSI ? ... c lists a model class and feature codes. Secondary DA (CSI > c) reports terminal type, firmware version, and ROM cartridge as CSI > Pp ; Pv ; Pc c. Tertiary DA (CSI = c) requests a unit ID, replied via a DCS string (DECRPTUI).

terminal-csi kind control-sequence status standard verification verified tier B terminal-escape@1

aka: DA · DA1 · DA2 · DA3 · device attributes · primary DA · secondary DA · ESC [ c · ESC [ > c

frame

CSI introducer: \x1b[ ESC [ (0x1B 0x5B)

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
primary Primary DA (DA1) — CSI c \x1b[c CSI c (or CSI 0 c) asks the terminal to identify its class and features. A VT100-class terminal replies e.g. CSI ? 1 ; 2 c; an xterm-class one CSI ? 6 2 ; ... c (62 = VT220 level, followed by feature numbers).
secondary Secondary DA (DA2) — CSI > c \x1b[>c CSI > c reports terminal type, firmware version, and ROM cartridge: reply CSI > Pp ; Pv ; Pc c (e.g. Pp identifies the model, Pv the version).
tertiary Tertiary DA (DA3) — CSI = c \x1b[=c CSI = c requests a unit ID; the terminal replies with a DCS report (DECRPTUI), DCS ! | <hex id> ST.

gotchas


provenance

per-fact attribution:

see also

agent: curl -H 'accept: application/json' wire.phall.io/terminal-csi/da or /terminal-csi/da.json