Re: command to clear screen buffer?

Bruno Cudini <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
Hi,

On Fri, Apr 26, 2013 at 05:08:45PM -0400, 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.

I don't know the answer, I can't think of any command that would do
something like this. But I think the 'altscreen' parameter would help,
at least for Vim.

> altscreen on|off
> 
> If  set to on, "alternate screen" support is enabled in
> virtual terminals, just like in xterm.  Initial setting
> is `off'.

Vim editing would happen in another term, not leaving anything in the
screen buffer.
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.