[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Clear screan question



Andy Bastien wrote:
> These ANSI codes do only clear the screen when the user logs out,
> which was the original question.  At some point somebody interpreted it
> to be about clearing the scrollback buffer, and things have been going
> off on that tangent ever since. 

Sorry Andy, but you are the one off on a tangent.  Here's the original
message from Tom Breza <tom@PCService-NET.co.uk>:

>>>I just use fetch and I been editing filie fetchmail, after I 
>>>finish editing file I log off from by presing CTRL-D but above 
>>>log prompt I can read what was been done before, is any chance 
>>>to clear screan complitly when I log off? That when I press >>>SHIFT-PgUp nobody can see anything?

See that "SHIFT-PgUp"?  We have always been talking about clearing the
console scroll-back buffer.  Just clearing the screen is easy, that's
why this thread has shown several ways to do that.  Clearing the
scroll-back buffer is trickier.  Either one uses a logout script to fill
it with blank space (my suggestion) or the script switches to an unused
vt and back (Ethan's suggestion).  Got an ANSI code to do that?

wes schreiner



Reply to: