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

Support for scrolling terminal #379

Open
AMythicDev opened this issue Nov 10, 2024 · 2 comments
Open

Support for scrolling terminal #379

AMythicDev opened this issue Nov 10, 2024 · 2 comments

Comments

@AMythicDev
Copy link

ANSI escape codes \033]nS and \033]nT command for scrolling the terminal up and down respectively.

@flagarde
Copy link
Collaborator

@AMythicDev Hello, Thank you for the proposition. Do you know if all terminals support it or if it is a niche scenario. The problem is that for now we don't have any terminal capability check (like terminfo). Normally, escape code not handled by the terminal should be swallowed without any problem but some terminals do not. Even if the terminal doesn't support this feature but swallow the escape code correcly, how the programmer/user knows the behavior he expects will be wrong ? We have some discussion on having terminal capabilities detection bt for now this is not implemented. For now the ANSI escape code provided by cpp-terminal is a limited subset

@AMythicDev
Copy link
Author

Well I suppose it should be supported by almost all mainstream terminals considering the fact that both ncurses and less rely on these codes. I myself wrote a terminal pager 3 years ago and it used these codes for getting lines on the terminal. So far I haven't received any issues regarding these escape codes. I think this should suffice the reasons behind the inclusion of these codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants