[PR #2816] Initialize the VT tab stops when a buffer is created in VT mode #25097

Closed
opened 2026-01-31 09:07:15 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


Summary of the Pull Request

If a user has VirtualTerminalLevel set, then SetConsoleMode(ENABLE_VIRTUAL_TERMINAL_PROCESSING) won't set our tab stops, because we're never going from vt off -> on.
So, if VT mode is enabled, construct the VT tab stops when the buffer is created.

PR Checklist

Detailed Description of the Pull Request / Additional comments

Big shout-out to @j4james for basically doing all the work on what I thought was an impossible bug. Thanks!

**Original Pull Request:** https://github.com/microsoft/terminal/pull/2816 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request If a user has `VirtualTerminalLevel` set, then `SetConsoleMode(ENABLE_VIRTUAL_TERMINAL_PROCESSING)` won't set our tab stops, because we're never going from vt off -> on. So, if VT mode is enabled, construct the VT tab stops when the buffer is created. ## PR Checklist * [x] Closes #411 * [x] I work here * [x] Tests added/passed ## Detailed Description of the Pull Request / Additional comments Big shout-out to @j4james for basically doing all the work on what I thought was an impossible bug. Thanks!
claunia added the pull-request label 2026-01-31 09:07:15 +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#25097