[PR #17446] Use the full buffer width for the VT viewport #31225

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

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

State: closed
Merged: No


That's a weird one I found while working on #17445...
The _viewport in conhost is basically the section of the buffer that
gets render on the screen. The _viewport.Left() is effectively the
horizontal scrolling position. I don't think we should use that for
the VT viewport. This PR changes it so that the VT viewport always
spans the full width of the buffer. This makes it possible to address
the full width of the buffer with CUP sequences.

Part of #14000

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17446 **State:** closed **Merged:** No --- That's a weird one I found while working on #17445... The `_viewport` in conhost is basically the section of the buffer that gets render on the screen. The `_viewport.Left()` is effectively the horizontal scrolling position. I don't think we should use that for the VT viewport. This PR changes it so that the VT viewport always spans the full width of the buffer. This makes it possible to address the full width of the buffer with CUP sequences. Part of #14000
claunia added the pull-request label 2026-01-31 09:45:54 +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#31225