[PR #17853] Restore contents when a screen info is closed #31390

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

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

State: closed
Merged: Yes


This moves the SetConsoleActiveScreenBufferImpl into VtIo which
allows us to use the code when the screen info handle is closed.

Closes #17817

Validation Steps Performed

  • Calling CreateConsoleScreenBuffer + SetConsoleActiveScreenBuffer
    • CloseHandle results in no obvious screen changes
**Original Pull Request:** https://github.com/microsoft/terminal/pull/17853 **State:** closed **Merged:** Yes --- This moves the `SetConsoleActiveScreenBufferImpl` into `VtIo` which allows us to use the code when the screen info handle is closed. Closes #17817 ## Validation Steps Performed * Calling `CreateConsoleScreenBuffer` + `SetConsoleActiveScreenBuffer` + `CloseHandle` results in no obvious screen changes ✅
claunia added the pull-request label 2026-01-31 09:46:57 +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#31390