-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
Terminal: provide an action to clear the terminal #6603
Comments
This will probably involve sending a particular key sequence to the xterm object. |
The following clears the terminal with two (related) issues:
I'd suggest to not implement this and rely on the shell's built-in clearing (like |
How about calling into |
That's what |
You're right, I still think this should be done but it will need to be done upstream xtermjs/xterm.js#173 |
There is a CSI code to lookup the current cursor position. That and a few others could potentially be used to delete all lines except the current one. |
Exposing this in upstream would make things a lot more convenient for consumers, all they will need to do it |
Added the API in upstream and implemented the command. The ⌘K keybinding on mac is still blocked by #12187 |
Moved the keybinding to #12585 as it's not going to land for Sept. |
Similar to the output panel would be nice to have an action top right to clear the terminal contents.
The text was updated successfully, but these errors were encountered: