[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clear Screen
From: |
Dennis Williamson |
Subject: |
Re: Clear Screen |
Date: |
Wed, 1 Dec 2010 16:32:32 -0600 |
PuTTY and gnome-terminal seem to preserve the previous output in the
scrollback buffer (effectively doing a "newline" clear).
PuTTY has a setting for this: "Window/Push erased text into scrollback"
On Wed, Dec 1, 2010 at 3:21 PM, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> On Wed, Dec 01, 2010 at 02:04:51PM -0700, Bob Proulx wrote:
>> If that doesn't do what you want then I don't think the functionality
>> you request exists.
>
> That's probably technically true. But on the other hand, I can see
> where his question is coming from. If you're on an rxvt or something,
> with a reasonably-sized scrollback buffer, and you do a "tput clear"
> or its equivalent, you only lose the lines that were on the visible
> part of the terminal at that time -- the rest of the scrollback buffer
> is still there.
>
> Perhaps the best solution for the original question is to send ${LINES:-24}
> newline characters to the terminal instead of clearing it. That should
> push the information that's currently visible "up" into the scrollback
> buffer, where he wants it to be.
>
>