[PR #5887] Spec for Improved keyboard handling in Conpty #26529

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

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

State: closed
Merged: Yes


Summary of the Pull Request

We have a number of bugs in the Terminal that all have the same singular root cause - VT input does not carry the same fidelity that Win32 input does. For Win32 applications there are certain keystrokes that simply cannot be represented with VT sequences.

This is my proposal for how we'll handle all these cases. I'm proposing a new VT sequence, which will enable the Terminal to send input with all of the information that an INPUT_RECORD might have, to conpty. There, conpty will be able to send input to the client application with the same fidelity they're used to, enabling these keys to work for those applications once again.

PR Checklist

Detailed Description of the Pull Request / Additional comments

read the spec

**Original Pull Request:** https://github.com/microsoft/terminal/pull/5887 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request We have a number of bugs in the Terminal that all have the same singular root cause - VT input does not carry the same fidelity that Win32 input does. For Win32 applications there are certain keystrokes that simply cannot be represented with VT sequences. This is my proposal for how we'll handle all these cases. I'm proposing a _new VT sequence_, which will enable the Terminal to send input with all of the information that an `INPUT_RECORD` might have, to conpty. There, conpty will be able to send input to the client application with the same fidelity they're used to, enabling these keys to work for those applications once again. ## PR Checklist * [x] Specs #4999 * [x] I work here * [x] is a spec ## Detailed Description of the Pull Request / Additional comments _read the spec_
claunia added the pull-request label 2026-01-31 09:16:36 +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#26529