[PR #18976] Preserve the cursor row during Clear Buffer #31664

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

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

State: closed
Merged: Yes


Introduces an ABI change to the ConptyClearPseudoConsole signal.
Otherwise, we have to make it so that the API call always retains
the row the cursor is on, but I feel like that makes it worse.

Closes #18732
Closes #18878

Validation Steps Performed

  • Launch ConsoleMonitor.exe
  • Create some text above & below the cursor in PowerShell
  • Clear Buffer
  • Buffer is cleared except for the cursor row ✅
  • ...same in ConPTY ✅
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18976 **State:** closed **Merged:** Yes --- Introduces an ABI change to the ConptyClearPseudoConsole signal. Otherwise, we have to make it so that the API call always retains the row the cursor is on, but I feel like that makes it worse. Closes #18732 Closes #18878 ## Validation Steps Performed * Launch `ConsoleMonitor.exe` * Create some text above & below the cursor in PowerShell * Clear Buffer * Buffer is cleared except for the cursor row ✅ * ...same in ConPTY ✅
claunia added the pull-request label 2026-01-31 09:48:43 +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#31664