Hi,
I use the screen
command for command-line multitasking in Linux and I set my scrollback buffer length to a very large value. Is there a key combination to clear the buffer for a certain tab when I don't want it sitting there anymore?
Thanks.
Hi,
I use the screen
command for command-line multitasking in Linux and I set my scrollback buffer length to a very large value. Is there a key combination to clear the buffer for a certain tab when I don't want it sitting there anymore?
Thanks.
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!
Next time try Google as well, as they are the programmer's best friend. Search keywords: gnu screen delete scrollback buffer
.
For me, this thread was the second hit.
In the window whose scrollback you want to dele
te, 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.