[PR #5300] Add support for the DSR-OS operating status report #26254

Closed
opened 2026-01-31 09:14:56 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


Summary of the Pull Request

This adds support for the VT escape sequence that requests the terminal's operating status. There is no attempt to actually verify the status of the app, though. We always return a response indicating a good operating condition (the same as most terminal emulators).

PR Checklist

Detailed Description of the Pull Request / Additional comments

This required an update to the OutputStateMachineEngine to accept the DSR-OS type, since it only dispatches types that it recognises (I think that's unnecessary, but that's an issue for another day).

The actual processing of the request is handled in the AdaptDispatch class, where it simply responds with a hard coded sequence (CSI 0 n), indicating a good operating condition.

Validation Steps Performed

I've added unit tests to confirm that the request is dispatched correctly, and the appropriate response is returned. I've also manually confirmed that the test of the Device Status Report in Vttest is now succeeding.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/5300 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This adds support for the VT escape sequence that requests the terminal's operating status. There is no attempt to actually verify the status of the app, though. We always return a response indicating a good operating condition (the same as most terminal emulators). ## PR Checklist * [x] Closes #5052 * [x] CLA signed. * [x] Tests added/passed * [ ] Requires documentation to be updated * [ ] I've not discussed this with core contributors already. I'm ready to accept this work might be rejected in favor of a different grand plan. ## Detailed Description of the Pull Request / Additional comments This required an update to the `OutputStateMachineEngine` to accept the `DSR-OS` type, since it only dispatches types that it recognises (I think that's unnecessary, but that's an issue for another day). The actual processing of the request is handled in the `AdaptDispatch` class, where it simply responds with a hard coded sequence (`CSI 0 n`), indicating a good operating condition. ## Validation Steps Performed I've added unit tests to confirm that the request is dispatched correctly, and the appropriate response is returned. I've also manually confirmed that the test of the _Device Status Report_ in _Vttest_ is now succeeding.
claunia added the pull-request label 2026-01-31 09:14:56 +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#26254