[PR #17645] Address feedback from #17510 #31303

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

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

State: closed
Merged: Yes


  • Added/changed comments as mentioned.
  • Improved the ugly resize_and_overwrite hack into the STL.
  • Add Write functions for xterm's window API.
  • The only reason we needed a move operator for VtIo::Writer
    is because we used it in a ternary in CONSOLE_INFORMATION.
    Ternaries are like if branches with hidden move assignments.
    Instead, we simply construct each Writer in place.
    No ternary = No move = No problems in life.
    The best benefit of this is that this makes calling GetVtWriter
    a hundred times cheaper.

Otherwise, I still need to extend a few tests in VtIoTests,
but I'm planning to do that later.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17645 **State:** closed **Merged:** Yes --- * Added/changed comments as mentioned. * Improved the ugly `resize_and_overwrite` hack into the STL. * Add `Write` functions for xterm's window API. * The only reason we needed a move operator for `VtIo::Writer` is because we used it in a ternary in `CONSOLE_INFORMATION`. Ternaries are like if branches with hidden move assignments. Instead, we simply construct each `Writer` in place. No ternary = No move = No problems in life. The best benefit of this is that this makes calling `GetVtWriter` a hundred times cheaper. Otherwise, I still need to extend a few tests in `VtIoTests`, but I'm planning to do that later.
claunia added the pull-request label 2026-01-31 09:46:27 +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#31303