[PR #15368] Add support for horizontal scrolling sequences #30617

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

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

State: closed
Merged: Yes


This PR introduces four new escapes sequences: DECIC (Insert Column),
DECDC (Delete Column), DECBI (Back Index), and DECFI (Forward
Index), which allow for horizontal scrolling within a margin area.

References and Relevant Issues

This follows on from the horizontal margins PR #15084 to complete the
requirements for the horizontal scrolling extension.

Detailed Description of the Pull Request / Additional comments

The implementation is fairly straightforward, since they're all built on
top of the existing _ScrollRectHorizontally method.

Validation Steps Performed

Thanks to @al20878, these operations have been extensively tested on a
number of DEC terminals and I've manually confirmed our implementation
matches their behavior.

I've also added a unit tests that covers the basic execution of each of
the operations.

Closes #15109

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15368 **State:** closed **Merged:** Yes --- This PR introduces four new escapes sequences: `DECIC` (Insert Column), `DECDC` (Delete Column), `DECBI` (Back Index), and `DECFI` (Forward Index), which allow for horizontal scrolling within a margin area. ## References and Relevant Issues This follows on from the horizontal margins PR #15084 to complete the requirements for the horizontal scrolling extension. ## Detailed Description of the Pull Request / Additional comments The implementation is fairly straightforward, since they're all built on top of the existing `_ScrollRectHorizontally` method. ## Validation Steps Performed Thanks to @al20878, these operations have been extensively tested on a number of DEC terminals and I've manually confirmed our implementation matches their behavior. I've also added a unit tests that covers the basic execution of each of the operations. Closes #15109
claunia added the pull-request label 2026-01-31 09:41:52 +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#30617