[PR #16534] Add support for the DECST8C escape sequence #30936

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

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

State: closed
Merged: Yes


Summary of the Pull Request

This PR adds support for the DECST8C escape sequence, which resets the
tab stops to every 8 columns.

Detailed Description of the Pull Request / Additional comments

This is actually a private parameter variant of the ANSI CTC sequence
(Cursor Tabulation Control), which accepts a selective parameter which
specifies the type of tab operation to be performed. But the DEC variant
only defines a single parameter value (5), which resets all tab stops.
It also considers an omitted parameter to be the equivalent of 5, so we
support that too.

Validation Steps Performed

I've extended the existing tab stop tests in ScreenBufferTests with
some basic coverage of this sequence.

I've also manually verified that the DECTABSR script in #14984 now
passes the DECST8C portion of the test.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/16534 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This PR adds support for the `DECST8C` escape sequence, which resets the tab stops to every 8 columns. ## Detailed Description of the Pull Request / Additional comments This is actually a private parameter variant of the ANSI `CTC` sequence (Cursor Tabulation Control), which accepts a selective parameter which specifies the type of tab operation to be performed. But the DEC variant only defines a single parameter value (5), which resets all tab stops. It also considers an omitted parameter to be the equivalent of 5, so we support that too. ## Validation Steps Performed I've extended the existing tab stop tests in `ScreenBufferTests` with some basic coverage of this sequence. I've also manually verified that the `DECTABSR` script in #14984 now passes the `DECST8C` portion of the test. ## PR Checklist - [x] Closes #16533 - [x] Tests added/passed
claunia added the pull-request label 2026-01-31 09:43:55 +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#30936