[PR #8864] Add support for the DECID report #27318

Open
opened 2026-01-31 09:21:18 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/8864

State: closed
Merged: Yes


This PR adds support for the DECID (Identify Device) escape sequence,
which allows for querying the terminal type in a way that is backwards
compatible with VT52 terminals.

This simply checks for the ESC Z sequence in the ActionEscDispatch
method of output state machine, and forwards the query to the existing
DeviceAttributes dispatch method, since the expected response is
identical to a DA report.

Validation Steps Performed

I've added an output engine test that verifies that the ESC Z sequence
is correctly interpreted as a DA query when in ANSI mode, and as a
VT52 identification query when in VT52 mode.

Closes #8857

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8864 **State:** closed **Merged:** Yes --- This PR adds support for the `DECID` (Identify Device) escape sequence, which allows for querying the terminal type in a way that is backwards compatible with VT52 terminals. This simply checks for the `ESC Z` sequence in the `ActionEscDispatch` method of output state machine, and forwards the query to the existing `DeviceAttributes` dispatch method, since the expected response is identical to a `DA` report. ## Validation Steps Performed I've added an output engine test that verifies that the `ESC Z` sequence is correctly interpreted as a `DA` query when in ANSI mode, and as a VT52 identification query when in VT52 mode. Closes #8857
claunia added the pull-request label 2026-01-31 09:21:18 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27318