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

Re: "less" or "man" clear-screen issue



On Tue, 2007-04-10 at 10:28 +0200, Jochen Schulz wrote:
> Daniel Haude:
> > 
> > when viewing man pages (or any kind of file, really) with "less", what
> > bugs me is that less restores the screen content before its execution on
> > exit. Which means that I always need to switch between two terminals (or
> > use screen) when I need to keep an eye on the manpage while trying to
> > compose a difficult command line. I'd prefer to be able to quit less
> > (and man) at the point of interest and just get my propmt back, with the
> > remains of the manpage still on screen. "more" does this, but I prefer less.
> 
> Actually, this is a feature of your terminal that less is using (and
> most people like it). But you should be able to turn it off completely
> (independent of the program), see
> <http://www.shallowsky.com/linux/noaltscreen.html>.
> 
> J.

Doesn't -X do what you want, set LESS to -X and then man works okay too,
doesn't it?!



Reply to: