[PR #14906] Provide a more detailed Device Attributes report #30305

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

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

State: closed
Merged: Yes


This is an update of our Primary Device Attributes report, which better
indicates the feature extensions that we now support.

Detailed Description of the Pull Request / Additional comments

This first parameter of the response is 61, representing a conformance
level of 1. The subsequent parameters identify the supported feature
extensions.

1 = 132 column mode
6 = Selective erase
7 = Soft fonts
22 = Color text
23 = Greek character sets
24 = Turkish character sets
28 = Rectangular area operations
32 = Text macros
42 = ISO Latin-2 character set

Most of these features are handled entirely within AdaptDispatch, so
they apply to all clients. However, 132 column mode is only supported by
ConHost, so we don't report that for conpty clients.

And note that soft fonts won't necessarily work in all conpty clients,
but we don't have an easy way of determining that, so we just report
soft font support for everyone.

Validation Steps Performed

I've manually verified that the DA1 report is returning the expected
response in Vttest, both from ConHost and Windows Terminal.

I've also updated the DeviceAttributesTests in the adapter tests to
account for the new expected response.

Closes #14491

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14906 **State:** closed **Merged:** Yes --- This is an update of our Primary Device Attributes report, which better indicates the feature extensions that we now support. ## Detailed Description of the Pull Request / Additional comments This first parameter of the response is 61, representing a conformance level of 1. The subsequent parameters identify the supported feature extensions. 1 = 132 column mode 6 = Selective erase 7 = Soft fonts 22 = Color text 23 = Greek character sets 24 = Turkish character sets 28 = Rectangular area operations 32 = Text macros 42 = ISO Latin-2 character set Most of these features are handled entirely within `AdaptDispatch`, so they apply to all clients. However, 132 column mode is only supported by ConHost, so we don't report that for conpty clients. And note that soft fonts won't necessarily work in all conpty clients, but we don't have an easy way of determining that, so we just report soft font support for everyone. ## Validation Steps Performed I've manually verified that the `DA1` report is returning the expected response in Vttest, both from ConHost and Windows Terminal. I've also updated the `DeviceAttributesTests` in the adapter tests to account for the new expected response. Closes #14491
claunia added the pull-request label 2026-01-31 09:39:58 +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#30305