Add support for the DECID report #12150

Open
opened 2026-01-31 03:07:32 +00:00 by claunia · 0 comments
Owner

Originally created by @j4james on GitHub (Jan 23, 2021).

Description of the new feature/enhancement

The DECID (Identify Device) report is essentially an alias of the DA (Device Attribute) report, but it's queried with the ESC Z escape sequence, matching the VT52 identification query. It can thus be used by applications supporting both VT52 and VT100+ terminals, which need a way to query which device type is in use.

Later DEC terminals discouraged its use (since it conflicts with a reserved ECMA/ANSI control), and only support the sequence at lower conformance levels. However, most modern terminal emulators don't bother with that distinction (i.e. they always support it), so for now at least, I'd recommend just treating it as a simple DA alias.

Proposed technical implementation details (optional)

All that's really needed is to hook up the escape sequence in OutputStateMachineEngine::ActionEscDispatch to call the existing DeviceAttributes dispatch method.

Originally created by @j4james on GitHub (Jan 23, 2021). # Description of the new feature/enhancement The `DECID` (Identify Device) report is essentially an alias of the `DA` (Device Attribute) report, but it's queried with the `ESC Z` escape sequence, matching the VT52 identification query. It can thus be used by applications supporting both VT52 and VT100+ terminals, which need a way to query which device type is in use. Later DEC terminals discouraged its use (since it conflicts with a reserved ECMA/ANSI control), and only support the sequence at lower conformance levels. However, most modern terminal emulators don't bother with that distinction (i.e. they always support it), so for now at least, I'd recommend just treating it as a simple `DA` alias. # Proposed technical implementation details (optional) All that's really needed is to hook up the escape sequence in `OutputStateMachineEngine::ActionEscDispatch` to call the existing `DeviceAttributes` dispatch method.
claunia added the Issue-FeatureNeeds-TriageResolution-Fix-CommittedNeeds-Tag-Fix labels 2026-01-31 03:07:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12150