clearing the output of less
jfharrigan at fedex.com
Mon Feb 5 09:47:34 PST 2007
* Jorge Almeida <jalmeida at math.ist.utl.pt>:
> On Mon, 5 Feb 2007, bojster wrote:
> > Jorge Almeida wrote:
> > > After exiting less or man in other distributions, the screen appears as
> > > before, i. e, I see "$ less foo". It is not so with [my ] LFS: the
> > > visible part of the "foo" document remains visible in the screen.
> > > What controls this behaviour? Some environment variable?
> > >
> > > (I'm trying this logged in a remote gentoo box, via ssh, and then
> > > chrooting into LFS. Could this be the problem?)
> > There's a 'screen' running somewhere inbetween, right? My bet is on
> > screen.
> Right! I just tried it without screen, and it works as normal.
> Thank you!
To control this behavior in screen, you can set the altscreen
parameter to on or off in your screenrc file.
More information about the lfs-support