-
Notifications
You must be signed in to change notification settings - Fork 1.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
[textinput] Clear the terminal screen on Ctrl+L #10078
[textinput] Clear the terminal screen on Ctrl+L #10078
Conversation
Writes the `\033[2J\033[H` sequence to clear the visible part of the screen. For Windows, this requires to temporarily enable processing of VT control sequences.
Starting build on |
@jalopezg-r00t I'll have to make several tests, |
Build failed on mac11/cxx17. Warnings:
And 12 more |
Build failed on mac1015/python3. Warnings:
And 12 more |
Starting build on |
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.
LGTM, at least on Windows 😉
Build failed on windows10/cxx14. Failing tests: |
@phsft-bot build just on windows10/cxx14 |
Starting build on |
This pull request implements the Ctrl+L keybinding (clear terminal screen) in ROOT's textinput.
Changes or fixes:
Display::Clear()
member function, which clears the visible part of the screen on a TTY and moves the cursor to the home position. For Windows, this requires to temporarily enable processing of VT control sequences.kCmdClearScreen
editor command.Checklist:
This PR fixes #10057.