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

Is there a function that behaves like vterm-clear, but deletes the previous lines in the shell as well? #697

Open
wickedjargon opened this issue Jan 6, 2024 · 3 comments

Comments

@wickedjargon
Copy link

Is there a function that behaves like vterm-clear, but deletes the previous lines in the shell as well?

This can be useful in case you don't want to confuse the output of one executed shell command with another during an interactive session. This is especially helpful when you're working with a series of long shell outputs. Clearing and deleting ensures that when you move to the beginning of buffer, you're also at the beginning of the output.

@rien333
Copy link

rien333 commented Jan 11, 2024

I think you want vterm-clear-scrollback, which is bound to C-c C-l by default.

@wickedjargon
Copy link
Author

that doesn't have the desired effect.

@rien333
Copy link

rien333 commented Jan 16, 2024

My bad, you should type C-c C-c C-l. Running M-x vterm-clear-scrollback does nothing on my end too, oddly enough.

but deletes the previous lines in the shell as well?

This time around I'm sure it does!

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