[PR #17195] Make sure DCS strings are flushed to conpty without delay #31153

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

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

State: closed
Merged: Yes


When the DCS passthrough code was first implemented, it relied on the
ActionPassThroughString method flushing the given string immediately.
However, that has since stopped being the case, so DCS operations end
up being delayed until the entire sequence has been parsed.

This PR fixes the issue by introducing a flush parameter to force an
immediate flush on the ActionPassThroughString method, as well as the
XtermEngine::WriteTerminalW method that it calls.

Validation Steps Performed

I've confirmed that the test case in issue #17111 now updates the color
table as soon as each color entry is parsed, instead of delaying the
updates until the end of the sequence.

Closes #17111

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17195 **State:** closed **Merged:** Yes --- When the `DCS` passthrough code was first implemented, it relied on the `ActionPassThroughString` method flushing the given string immediately. However, that has since stopped being the case, so `DCS` operations end up being delayed until the entire sequence has been parsed. This PR fixes the issue by introducing a `flush` parameter to force an immediate flush on the `ActionPassThroughString` method, as well as the `XtermEngine::WriteTerminalW` method that it calls. ## Validation Steps Performed I've confirmed that the test case in issue #17111 now updates the color table as soon as each color entry is parsed, instead of delaying the updates until the end of the sequence. Closes #17111
claunia added the pull-request label 2026-01-31 09:45: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#31153