-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Implement Hard Reset for Terminal #4909
Conversation
## Summary of the Pull Request This _actually_ implements `\033c` ([RIS](https://vt100.net/docs/vt220-rm/chapter4.html)) for the Windows Terminal. I thought I had done this in #4433, but that PR actually only passthrough'd `\x1b[3J`. I didn't realize at the time that #2715 was mostly about hard reset, not erase scrollback. Not only should conpty pass through RIS, but the Terminal should also be prepared to actually handle that sequence. So this PR adds that support as well. ## References * #4433: original PR I thought fixed this. ## PR Checklist * [x] Closes #2715 for real this time * [x] I work here * [x] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed Actually tested `printf \033c` in the Terminal this time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this impact other non-RIS escape sequences?
// if (success) | ||
// { | ||
// success = SetOriginMode(false); // Absolute cursor addressing. | ||
// } | ||
// if (success) | ||
// { | ||
// success = SetAutoWrapMode(true); // Wrap at end of line. | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, i accept the reason for these comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to test SoftReset too? Or is it good enough that a HardReset includes a SoftReset?
Co-Authored-By: Carlos Zamora <carlos.zamora@microsoft.com>
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Summary of the Pull Request
This actually implements
\033c
(RIS) for the Windows Terminal.
I thought I had done this in #4433, but that PR actually only passthrough'd
\x1b[3J
. I didn't realize at the time that #2715 was mostly about hard reset,not erase scrollback.
Not only should conpty pass through RIS, but the Terminal should also be
prepared to actually handle that sequence. So this PR adds that support as well.
References
CSI 3 J
in Conpty #4433: original PR I thought fixed this.PR Checklist
Validation Steps Performed
Actually tested
printf \033c
in the Terminal this time