-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the DECST8C escape sequence #16534
Add support for the DECST8C escape sequence #16534
Conversation
BTW I didn't realize that |
Done. |
f589888
into
microsoft:main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
## 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 (cherry picked from commit f589888) Service-Card-Id: 91631721 Service-Version: 1.19
Summary of the Pull Request
This PR adds support for the
DECST8C
escape sequence, which resets thetab 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
withsome basic coverage of this sequence.
I've also manually verified that the
DECTABSR
script in #14984 nowpasses the
DECST8C
portion of the test.PR Checklist