Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2009 18:49:47 -0700
From:      Bill Campbell <freebsd@celestial.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: man quits back to the prompt after CTRL-G
Message-ID:  <20091014014947.GA13021@ayn.mi.celestial.com>
In-Reply-To: <19157.11479.415746.171606@jerusalem.litteratus.org>
References:  <521176.60565.qm@web52902.mail.re2.yahoo.com> <19157.11479.415746.171606@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 13, 2009, Robert Huff wrote:
>
>Chris Stankevitz writes:
>
>>  Please try this:
>>  
>>  1. at the prompt type "man man" to get the man manual page.
>>  2. press CTRL-G to to to the bottom of the document
>>  3. press k to scroll up one line
>>  
>>  You'll notice you cannot perform step 3 because man "quits back
>>  to the prompt after CTRL-G".
>>  
>>  Question: How can I make man not "quit back to the prompt after
>>  CTRL-G"?

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
-- 
INTERNET:   bill@celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

Whenever a people entrust the defence of their country to a regular,
standing army, composed of mercenaries, the power of that country will
remain under the direction of the most wealthy citizens.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091014014947.GA13021>