[ale] man man
Jim Kinney
jim.kinney at gmail.com
Mon Jul 19 13:35:42 EDT 2010
or run:
LESS='-X' man foo
or set up an alias:
alias man="LESS='-X' man"
Nice trick. wish I'd seen this a LONG time ago!
On Mon, Jul 19, 2010 at 1:25 PM, Michael B. Trausch <mike at trausch.us> wrote:
> On Mon, 2010-07-19 at 10:39 -0400, Scott McBrien wrote:
> > It's a less option to not clear the screen on exit.
> >
> > There is a less variable that contains commandline arguments for less.
> > I don't remember the option off the top of my head, but it is in the
> > less man page, as is the variable that holds the less arguments.
> > Something like:
> > export LESS_OPTS="-c"
> >
> > But again, check the man page for both variable name and command opt.
>
> As rs at ale.spam.futz.org pointed out, use the LESS shell variable to
> control the behavior of the less pager. To make it all explicit, I'd do
> the following in your shell's startup script:
>
> MANPAGER=less
> LESS='-X'
>
> export MANPAGER LESS
>
> Then all your shell sessions will have the same behavior.
>
> What I don't know is whether or not there will be any side effects, the
> man page says this:
>
> -X or --no-init
> Disables sending the termcap initialization and deini-
> tialization strings to the terminal. This is sometimes
> desirable if the deinitialization string does something
> unnecessary, like clearing the screen.
>
> It would seem to me like this could mean that you may occasionally have
> terminal states that less won't be able to deal with; you might have to
> use the reset(1) command to make things work properly in such an event.
>
> --- Mike
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
--
--
James P. Kinney III
I would rather stumble along in freedom than walk effortlessly in chains.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20100719/a8b9a6ce/attachment.html
More information about the Ale
mailing list