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

Re: tip of the day: stop prevent 'man' from clearing the screen on exit



On Thu, Apr 10, 2003 at 09:50:22 -0400, Benjamin Rutt wrote:
> On my debian system, whenever I used man, I was annoyed that the
> screen was cleared when I exited man.  This made it hard to refer to
> the text that was on the screen before I exited man.

Here the screen is not cleared: the previous screen is restored
(and I like that, in general).

> Some research revealed that on my system, man invoked the pager
> 'less'.  I tried setting my pager to 'more', but 'more' can't scroll
> backwards in a man page, and I didn't want to lose that functionality.
> 
> So, the fix was to do a
> 
>     export LESS=X
> 
> in my ~/.bashrc.  This avoids the screen clearing "problem" on exit
> for regular uses of 'less' as well.

or: export PAGER="less -X" if you don't want to affect less itself.

FYI, I use the following options:

PAGER: less -is
LESS: -ciMR

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Reply to: