From owner-freebsd-questions@FreeBSD.ORG Wed Oct 14 08:10:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C0161065694 for ; Wed, 14 Oct 2009 08:10:37 +0000 (UTC) (envelope-from frank@shute.org.uk) Received: from atmail-8.bnguk.net (atmail-8.bnguk.net [80.74.253.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3B2C08FC12 for ; Wed, 14 Oct 2009 08:10:37 +0000 (UTC) Received: from 54-144.adsl.zetnet.co.uk ([194.247.54.144] helo=orange.esperance-linux.co.uk) by atmail-8.bnguk.net with esmtp (Exim 4.69) (envelope-from ) id 1MxywN-000282-5S; Wed, 14 Oct 2009 09:10:35 +0100 Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 768354AC1B; Wed, 14 Oct 2009 09:10:30 +0100 (BST) Date: Wed, 14 Oct 2009 09:10:30 +0100 From: Frank Shute To: Chris Stankevitz Message-ID: <20091014081030.GA50437@orange.esperance-linux.co.uk> Mail-Followup-To: Chris Stankevitz , freebsd-questions@freebsd.org References: <20091014014947.GA13021@ayn.mi.celestial.com> <4AD56B3A.4070905@toyon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AD56B3A.4070905@toyon.com> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 7.2-RC2 amd64 X-Organisation: 'shute.org.uk' Cc: freebsd-questions@freebsd.org Subject: Re: man quits back to the prompt after CTRL-G X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 08:10:37 -0000 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