[PR #15672] Clean up WriteConsoleInputA conversion #30696

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

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

State: closed
Merged: Yes


This commit inlines EventsToUnicode into WriteConsoleInputAImpl
because soon we'll not use deques for events anymore and so the old
code won't work. It cleans up the implementation because I intend to
move all this code directly into InputBuffer to have a better and
tighter control over how text gets converted. UTF-8 input for instance
requires the storage of up to 3 input events and this code is not fit
to handle that. It's also unmaintainable because our input handling
code shouldn't be spread over a dozen files either. 😄

Validation Steps Performed

  • Unit and feature tests are
**Original Pull Request:** https://github.com/microsoft/terminal/pull/15672 **State:** closed **Merged:** Yes --- This commit inlines `EventsToUnicode` into `WriteConsoleInputAImpl` because soon we'll not use deques for events anymore and so the old code won't work. It cleans up the implementation because I intend to move all this code directly into `InputBuffer` to have a better and tighter control over how text gets converted. UTF-8 input for instance requires the storage of up to 3 input events and this code is not fit to handle that. It's also unmaintainable because our input handling code shouldn't be spread over a dozen files either. 😄 ## Validation Steps Performed * Unit and feature tests are ✅
claunia added the pull-request label 2026-01-31 09:42:25 +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#30696