[PR #16408] Disable win32 input mode on exit #30912

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

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

State: closed
Merged: Yes


When ConPTY exits it should attempt to restore the state as it was
before it started. This is particularly important for the win32
input mode sequences, as Linux shells don't know what to do with it.

Related to #16343

Validation Steps Performed

  • Replace conhost with this
  • Launch a Win32 application inside WSL
  • Exit that application
  • Shell prompt doesn't get filled with win32 input mode sequences ✅
**Original Pull Request:** https://github.com/microsoft/terminal/pull/16408 **State:** closed **Merged:** Yes --- When ConPTY exits it should attempt to restore the state as it was before it started. This is particularly important for the win32 input mode sequences, as Linux shells don't know what to do with it. Related to #16343 ## Validation Steps Performed * Replace conhost with this * Launch a Win32 application inside WSL * Exit that application * Shell prompt doesn't get filled with win32 input mode sequences ✅
claunia added the pull-request label 2026-01-31 09:43:47 +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#30912