[PR #4909] Implement Hard Reset for Terminal #26027

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

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

State: closed
Merged: Yes


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

  • #4433: original PR I thought fixed this.

PR Checklist

  • Closes #2715 for real this time
  • I work here
  • Tests added/passed
  • [n/a] Requires documentation to be updated

Validation Steps Performed

Actually tested printf \033c in the Terminal this time

**Original Pull Request:** https://github.com/microsoft/terminal/pull/4909 **State:** closed **Merged:** Yes --- ## 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
claunia added the pull-request label 2026-01-31 09:13:28 +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#26027