[PR #16470] Increase VtInputThread buffer size #30934

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

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

State: closed
Merged: Yes


This makes 3 improvements:

  • 16x larger input buffer size improves behavior when pasting
    clipboard contents while the win32-input-mode is enabled,
    as each input character is roughly 15-20x longer after encoding.
  • Translate UTF8 to UTF16 outside of the console lock.
  • Preserve the UTF16 buffer between reads for less mallocs.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/16470 **State:** closed **Merged:** Yes --- This makes 3 improvements: * 16x larger input buffer size improves behavior when pasting clipboard contents while the win32-input-mode is enabled, as each input character is roughly 15-20x longer after encoding. * Translate UTF8 to UTF16 outside of the console lock. * Preserve the UTF16 buffer between reads for less mallocs.
claunia added the pull-request label 2026-01-31 09:43:54 +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#30934