clearing the output of less

Dan Nicholson dbn.lists at
Mon Feb 5 09:37:41 PST 2007

On 2/5/07, Jorge Almeida <jalmeida at> 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?)

When 'screen' isn't there, you can control this behavior with the -X
option in less.


More information about the lfs-support mailing list