Date: Wed, 14 Oct 2009 09:10:30 +0100 From: Frank Shute <frank@shute.org.uk> To: Chris Stankevitz <cstankevitz@toyon.com> Cc: freebsd-questions@freebsd.org Subject: Re: man quits back to the prompt after CTRL-G Message-ID: <20091014081030.GA50437@orange.esperance-linux.co.uk> In-Reply-To: <4AD56B3A.4070905@toyon.com> References: <20091014014947.GA13021@ayn.mi.celestial.com> <4AD56B3A.4070905@toyon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 13, 2009 at 11:10:02PM -0700, Chris Stankevitz wrote: > > Bill Campbell wrote: > >The -e and -E options to less control this. You want neither of > >these specified if you don't want to have less automatically exit > >at end-of-file. The ``-e'' option causes it to exit the second > >time it hits eof while ``-E'' exits the first time. > > Bill, > > Thank you for your explanation. I hope to find that my PAGER > environment variable is "less -E". If so, I will drop the -E. > > Chris > Chris, Set $PAGER to "less" and then set $LESS to something reasonable in your shells rc/profile. E.g On my machine: LESS="-Xrmj3z-3 -Pm?f%f\:\ .?pb%pb\%\ :?lt%lt. .?e(END)" All explained in less(1) Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091014081030.GA50437>