[PR #4870] vt: make sure to Flush the entire parsed sequence #26006

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

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

State: closed
Merged: Yes


When we had to flush unknown sequences to the terminal, we were only
taking the most recent run with us; therefore, if we received \e[?12
and 34h in separate packets we would only send out 34h.

This change fixes that issue by ensuring that we cache partial bits of
sequences we haven't yet completed, just in case we need to flush them.

Fixes #3080.
Fixes #3081.

PR Checklist

Validation Steps Performed

Ran new tests!

**Original Pull Request:** https://github.com/microsoft/terminal/pull/4870 **State:** closed **Merged:** Yes --- When we had to flush unknown sequences to the terminal, we were only taking the _most recent run_ with us; therefore, if we received `\e[?12` and `34h` in separate packets we would _only_ send out `34h`. This change fixes that issue by ensuring that we cache partial bits of sequences we haven't yet completed, just in case we need to flush them. Fixes #3080. Fixes #3081. ## PR Checklist * [x] Closes #3080, Closes #3081 * [x] CLA signed * [x] Tests added/passed * [ ] Requires documentation to be updated * [x] Core contributor ## Validation Steps Performed Ran new tests!
claunia added the pull-request label 2026-01-31 09:13:17 +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#26006