Skip to content

Primary device attributes (DA1)

Category: device · Tags: ECMA-48 Standard, VT100 · Specification ↗

DA1 (Primary Device Attributes) lets applications identify the terminal type and its capabilities. The query is ESC [ c or ESC [ 0 c. The terminal responds with ESC [ ? attributes c where attributes is a semicolon-separated list of capability codes. DA1 is one of the first sequences an application sends to discover what the terminal supports. The response identifies the terminal class (VT100, VT220, etc.) and optional capabilities. Modern terminals typically identify as VT220 or higher with various capability flags. Shell integration scripts and TUI frameworks use DA1 to enable or disable features based on terminal capabilities.

Supported by 0 of 6 backends (0%)

Support Matrix

BackendVersionSupportNotes
Alacritty0.26.0~ partialHeadless mode has no output stream for DA1 responses
Ghostty1.3.1~ partialHeadless mode has no output stream for DA1 responses
Kitty0.40.0~ partialHeadless mode has no output stream for DA1 responses
WezTerm0.1.0-fork.5~ partialHeadless mode has no output stream for DA1 responses
xterm.js5.5.0~ partialHeadless mode has no output stream for DA1 responses
vt1000.1.0✗ noNo output stream — pure TypeScript emulator

Powered by Termless
Playwright for Terminals