Sequences

Primary Device Attributes (DA1)

This is used to report operating VT level and supported extensions, e.g. Sixel.

Escape CodeExplanation
CSI c or CSI 0 cCSI is ESC [, a.k.a. ^[[. This is a Primary Device Attributes (DA1) request.
CSI ? 64 ; Ps1 ; ... Psn cStandard DA1 response format. Ps1 to Psn represents specific features.
CSI ? *level* ; 1 ; 2 ; 6 ; 9 ; 15 cwith level = 60 + (decTerminalID / 100) (default 64)
CSI ? 1 ; 2 cVT100
CSI ? 1 ; 0 cVT101
CSI ? 6 vVT102

Note: Spaces are added for readability. They do not exist in actual DA1 escape codes.

References:

Modes

Synchronized Updates (DECSET/DECRST 2026)

See https://gitlab.freedesktop.org/terminal-wg/specifications/-/merge_requests/2 for the canonical specification.