This thread has the following suggestion:
In the window whose scrollback you want to delete, set the scrollback to zero, then return it to its normal value (in your case, 15000).
If you want, you can bind this to a key:
bind / eval "scrollback 0" "scrollback 15000"
You can issue the scrollback 0
command from the session as well, after typing C-a :
.
HTH.
C-a C
will clear the screen, including the promptclear
(command, not key combination) will clear the screen, leaving a promptETA: misread the original question; these will just clear the visible text, but will not clear the buffer!
I added the command "clear" as well to clean the current screen. N.B. You have to press enter to regain you prompt.
bind '/' eval "clear" "scrollback 0" "scrollback 15000"
Also add it to you ".screenrc" to make it permanent.
N.B. I added single quotes around the slash to be sure it didn't interfere in my ".screenrc". May not be necessary.
alias cls='printf "\e[3J\033c"'
Clears the screen and scrollback buffer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With