[PR #14290] Add support for private options in DSR queries #30052

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

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

State: closed
Merged: Yes


The original implementation of the Device Status Report sequence was
only capable of handling ANSI status queries. This PR adds the ability
to respond to private DEC queries as well.

To prove it's working as intended, I've also included support for the
DEC extended cursor position report (DECXCPR), which is essentially
the same as the ANSI cursor position report, but with an additional
parameter indicating the page number. Until we support paging, though,
that value is just hardcoded to 1.

References

The method for distinguishing between ANSI options and the private DEC
options is based on the updates made to the SM/RM mode sequences in
PR #8469.

Validation Steps Performed

I've added a couple of unit tests covering the DECXCPR report, and
also manually confirmed we now pass the Extended Cursor-Position test
in vttest.

Closes #14206

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14290 **State:** closed **Merged:** Yes --- The original implementation of the _Device Status Report_ sequence was only capable of handling ANSI status queries. This PR adds the ability to respond to private DEC queries as well. To prove it's working as intended, I've also included support for the DEC extended cursor position report (`DECXCPR`), which is essentially the same as the ANSI cursor position report, but with an additional parameter indicating the page number. Until we support paging, though, that value is just hardcoded to 1. ## References The method for distinguishing between ANSI options and the private DEC options is based on the updates made to the `SM`/`RM` mode sequences in PR #8469. ## Validation Steps Performed I've added a couple of unit tests covering the `DECXCPR` report, and also manually confirmed we now pass the _Extended Cursor-Position_ test in vttest. Closes #14206
claunia added the pull-request label 2026-01-31 09:38:22 +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#30052