Skip to content
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

Adds VT sequence DECSSCLS and properly handle DECSCLM #1212

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

christianparpart
Copy link
Member

Closes #1204

@github-actions github-actions bot added VT: Backend Virtual Terminal Backend (libterminal API) frontend Contour Terminal Emulator (GUI frontend) labels Sep 22, 2023
@christianparpart christianparpart force-pushed the improvement/slow-scroll-mode branch 5 times, most recently from 0b9c96a to c9edd73 Compare September 22, 2023 20:03
@github-actions github-actions bot added the test Unit tests label Sep 22, 2023
@christianparpart christianparpart force-pushed the improvement/slow-scroll-mode branch 5 times, most recently from 71cbe6d to df604cd Compare September 22, 2023 21:00
Signed-off-by: Christian Parpart <christian@parpart.family>
@christianparpart christianparpart merged commit 5dbc034 into master Sep 22, 2023
57 of 60 checks passed
@christianparpart christianparpart deleted the improvement/slow-scroll-mode branch September 22, 2023 21:51
if (value.IsScalar())
{
auto time = value.as<unsigned>();
if (time < 10 || time > 2000)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can add = as well here

Comment on lines +852 to +856
1, // 0
2, // 1
9, // 2 | defined by spec to be 18 lines per second
13, // 3
18, // 4 | defined by spec to be 18 lines per second
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a big deal, but if you are revisiting this code, I'd suggest maybe using 3, 6, 9, 12, and 18 for these first 5 settings. That way you'd also be able to select the original speeds used on some of the early DEC terminals: 6 for the VT1xx/VT2xx models; 3, 6, and 12 for the VT340; and you still have 9 and 18 in their standard positions for the VT5xx models.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I better take care of it now, before I forget: #1231 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Contour Terminal Emulator (GUI frontend) test Unit tests VT: Backend Virtual Terminal Backend (libterminal API)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add VT sequence: DECSCLM - Scrolling Mode
3 participants