-
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
RIS doesn't propagate through ConPTY to clear connected terminal #2715
Comments
@zadjii-msft Yes and no. PR #2367 was just a conhost fix. So while it should improve the behaviour of RIS in the Windows Terminal (e.g. the screen should at least clear), it won't be perfect. Things like the backbuffer clearing would assumedly need special case handling through conpty. I don't know much about that side of things though. |
## Summary of the Pull Request Conpty doesn't need `CSI 3 J`, it doesn't have a scrollback. The terminal that's connected should use that. This makes conpty pass it through, like other sequences that conpty has no need for. ## References ## PR Checklist * [x] Closes #2715 * [x] I work here * [x] Tests added/passed * [n/a] Requires documentation to be updated
🎉This issue was addressed in #4433, which has now been successfully released as Handy links: |
This allowed |
And as far as I can tell, the original bug report ( |
This comment has been minimized.
This comment has been minimized.
@Lemmingh The problem of clearing the scrollback in PowerShell and Cmd is covered by another issue (#3126), because Windows applications don't use VT sequences like |
## 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
## 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
Environment
Steps to reproduce
Enter
printf "\033c"
while using WSL in Windows TerminalExpected behavior
Console should be cleared, as when using any standard Linux terminal
Actual behavior
Nothing changes.
Could be related to #140, but it seems like that has been fixed.
The text was updated successfully, but these errors were encountered: