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

Capture CTRL+L in ROOT prompt to clear #10057

Closed
ferdymercury opened this issue Mar 5, 2022 · 0 comments · Fixed by #10078
Closed

Capture CTRL+L in ROOT prompt to clear #10057

ferdymercury opened this issue Mar 5, 2022 · 0 comments · Fixed by #10078

Comments

@ferdymercury
Copy link
Collaborator

ferdymercury commented Mar 5, 2022

Is your feature request related to a problem? Please describe.

When I have too much stuff in my Linux command line, I press CTRL+L and it clears everything.

When I have too much stuff in my ROOT prompt, I type .!clear and it clears everything.

Describe the solution you'd like

It would be nice if ROOT could capture CTRL+L and do that .!clear behind the scenes.

If this option is added, it would be nice that it is documented somewhere in the ROOT prompt commands #10055

Plan B would be to allow the user to define custom 'shortcuts' in a .root_shortcuts file, where one could specify that CTRL+L bind to .!clear or whatever you want. But I guess it would be better that this comes by default for everyone as it is quite generic.

Describe alternatives you've considered

Pressing or holding 'ENTER' many times.

Additional context

https://root-forum.cern.ch/t/keyboard-shortcut-hot-keys-in-root-aliases/14093

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

Successfully merging a pull request may close this issue.

3 participants