[PR #18437] Fix "Ctrl+Break can leave the WSL shell in an unusable state" #31530

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

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

State: open
Merged: No


Summary of the Pull Request

Runs reset in the shell after user kills the shell with ctrl + break and presses enter to restart the terminal.

References and Relevant Issues

18425

Detailed Description of the Pull Request / Additional comments

reset resets the terminal state, preventing the state of the previous terminal session carrying over into the next one and hence any unintended terminal behavior such as that shown in issue 18425.

Validation Steps Performed

Reproduce the bug in 18425. It should no longer occur.

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18437 **State:** open **Merged:** No --- ## Summary of the Pull Request Runs `reset` in the shell after user kills the shell with `ctrl + break` and presses `enter` to restart the terminal. ## References and Relevant Issues [18425](https://github.com/microsoft/terminal/issues/18425) ## Detailed Description of the Pull Request / Additional comments `reset` resets the terminal state, preventing the state of the previous terminal session carrying over into the next one and hence any unintended terminal behavior such as that shown in issue 18425. ## Validation Steps Performed Reproduce the bug in [18425](https://github.com/microsoft/terminal/issues/18425). It should no longer occur. ## PR Checklist - [ ] Closes #xxx - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:47:49 +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#31530