[PR #14840] [MERGED] Ignore CHAR_INFO trailers during WriteConsoleOutput #30272

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14840
Author: @lhecker
Created: 2/13/2023
Status: ✅ Merged
Merged: 2/15/2023
Merged by: @DHowett

Base: main ← Head: dev/lhecker/13626-fixup


📝 Commits (1)

  • 0908cb7 Ignore CHAR_INFO trailers during input

📊 Changes

4 files changed (+73 additions, -17 deletions)

View changed files

📝 src/buffer/out/OutputCellIterator.cpp (+5 -0)
📝 src/buffer/out/OutputCellIterator.hpp (+1 -0)
📝 src/buffer/out/Row.cpp (+7 -3)
📝 src/host/ft_host/CJK_DbcsTests.cpp (+60 -14)

📄 Description

#13626 contains a small "regression" compared to #13321:
It now began to store trailers in the buffer wherever possible to allow a region
of the buffer to be backed up and restored via Read/WriteConsoleOutput.
But we're unfortunately still ill-equipped to handle anything but UCS-2 via
WriteConsoleOutput, so it's best to again ignore trailers just like in #13321.

Validation Steps Performed

  • Added unit test ✅

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/14840 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 2/13/2023 **Status:** ✅ Merged **Merged:** 2/15/2023 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/lhecker/13626-fixup` --- ### 📝 Commits (1) - [`0908cb7`](https://github.com/microsoft/terminal/commit/0908cb7b454fa9f07eaeb3bac2e408abb894030c) Ignore CHAR_INFO trailers during input ### 📊 Changes **4 files changed** (+73 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `src/buffer/out/OutputCellIterator.cpp` (+5 -0) 📝 `src/buffer/out/OutputCellIterator.hpp` (+1 -0) 📝 `src/buffer/out/Row.cpp` (+7 -3) 📝 `src/host/ft_host/CJK_DbcsTests.cpp` (+60 -14) </details> ### 📄 Description #13626 contains a small "regression" compared to #13321: It now began to store trailers in the buffer wherever possible to allow a region of the buffer to be backed up and restored via Read/WriteConsoleOutput. But we're unfortunately still ill-equipped to handle anything but UCS-2 via WriteConsoleOutput, so it's best to again ignore trailers just like in #13321. ## Validation Steps Performed * Added unit test ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:39:42 +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#30272