Re: command to clear screen buffer?

Chris Jones <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Fri, Apr 26, 2013 at 05:08:45PM EDT, Captain Wiggum wrote:

> Some times I vim a confidential file or a p/w vault.
> Then this clear text info is trapped in my scroll back buffer forever.
> Is there a command to purge the scroll back buffer?
> If not, it seems like a good feature for the next version.
> 
> Thanks!

Try this: 

clear the screen (via CTRL-L) and issue:

| CTRL-A :scrollback 0 <Enter>
| CTRL-A [ CTRL-U                # you can't scroll back
| CTRL-A :scrollback 500 <Enter>
| CTRL-A [ CTRL-U                # scroll back: your buffer is empty 

CJ

-- 
Oh My God!!! Larry is back!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.