[PR #17884] Fix clear buffer command #31394

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

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

State: closed
Merged: Yes


Without a VT "renderer" there's no implicit output anymore when
calling ClearPseudoConsole. The fix is trivial, but it works
slightly different from before: Previously, we would preserve
the line the cursor is on, while this PR doesn't do that.
I felt like there's not much merit in preserving the line,
because it may be a multi-line prompt which won't work with that.

Closes #17867

Validation Steps Performed

Bind 3 different actions to the 3 variants of "Clear buffer"
and test them. They work.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17884 **State:** closed **Merged:** Yes --- Without a VT "renderer" there's no implicit output anymore when calling `ClearPseudoConsole`. The fix is trivial, but it works slightly different from before: Previously, we would preserve the line the cursor is on, while this PR doesn't do that. I felt like there's not much merit in preserving the line, because it may be a multi-line prompt which won't work with that. Closes #17867 ## Validation Steps Performed Bind 3 different actions to the 3 variants of "Clear buffer" and test them. They work. ✅
claunia added the pull-request label 2026-01-31 09:46:59 +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#31394