Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the DSR-OS operating status report #5300

Merged
merged 3 commits into from
Apr 9, 2020

Conversation

j4james
Copy link
Collaborator

@j4james j4james commented Apr 9, 2020

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

  • Closes Terminal does not respond to DSR 5 VT Sequence #5052
  • CLA signed.
  • 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.

@zadjii-msft zadjii-msft added Area-VT Virtual Terminal sequence support Product-Conhost For issues in the Console codebase labels Apr 9, 2020
Copy link
Contributor

@DHowett-MSFT DHowett-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent as always. Thanks!

@DHowett-MSFT DHowett-MSFT merged commit 2d09dfd into microsoft:master Apr 9, 2020
@j4james j4james deleted the feature-dsr-os branch April 13, 2020 23:25
@ghost
Copy link

ghost commented Apr 22, 2020

🎉Windows Terminal Preview v0.11.1121.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VT Virtual Terminal sequence support Product-Conhost For issues in the Console codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terminal does not respond to DSR 5 VT Sequence
3 participants