[PR #16445] conpty: request DSR-CPR before Win32 input mode #30920

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

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

State: closed
Merged: Yes


This prevents an issue in conhost where older versions of Windows Terminal (including the ones currently inbox in Windows, as well as stable and preview) will still cause WSL interop to hang on startup.

Since VT input is erroneously re-encoded as Win32 input events on those versions, we need to make sure we request the cursor position before enabling Win32 input mode. That way, the CPR we get back is properly encoded.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/16445 **State:** closed **Merged:** Yes --- This prevents an issue in conhost where older versions of Windows Terminal (including the ones currently inbox in Windows, as well as stable and preview) will *still* cause WSL interop to hang on startup. Since VT input is erroneously re-encoded as Win32 input events on those versions, we need to make sure we request the cursor position *before* enabling Win32 input mode. That way, the CPR we get back is properly encoded.
claunia added the pull-request label 2026-01-31 09:43:50 +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#30920