From owner-freebsd-questions@FreeBSD.ORG Mon May 19 18:27:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6BB337B401 for ; Mon, 19 May 2003 18:27:50 -0700 (PDT) Received: from thalia.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 703B843FB1 for ; Mon, 19 May 2003 18:27:48 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b159.otenet.gr [212.205.244.167]) by thalia.otenet.gr (8.12.9/8.12.9) with ESMTP id h4K1RiNQ015379; Tue, 20 May 2003 04:27:45 +0300 (EEST) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.9/8.12.9) with ESMTP id h4K1RiWI034129; Tue, 20 May 2003 04:27:44 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.9/8.12.9/Submit) id h4K1RiYZ034128; Tue, 20 May 2003 04:27:44 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 20 May 2003 04:27:44 +0300 From: Giorgos Keramidas To: David Kelly Message-ID: <20030520012744.GA34091@gothmog.gr> References: <20030520080838.0efe2d74.y2kbug@ms25.hinet.net> <20030520002322.GA33134@gothmog.gr> <200305191948.17507.dkelly@HiWAAY.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305191948.17507.dkelly@HiWAAY.net> cc: FreeBSD-Questions@freebsd.org Subject: Re: man page search highlights X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2003 01:27:51 -0000 On 2003-05-19 19:48, David Kelly wrote: >On Monday 19 May 2003 07:23 pm, Giorgos Keramidas wrote: >>On 2003-05-20 08:08, Robert Storey wrote: >>> Once again displaying the ignorance of a Linux refugee/FBSD >>> newbie... >>> >>> When viewing man pages, I often use the search feature: >>> >>> /searchstring >>> >>> The difference I've noticed between Linux and FBSD is that in >>> Linux, if the search string is found, the string is highlighted. I >>> find that a very useful feature. Is there some way to enable this >>> function in FBSD man pages? >> >> more(1) doesn't highlight matches. >> less(1) does. >> >> Set your PAGER to 'less' and it should "just work" :-) > > Actually on FreeBSD more is less, but running in "more compatibility > mode": Yep. IIRC, some of the things that the "compatibility mode" sets cannot be undone from within less using -? options though; this is why I suggested PAGER='less'. > Also, I like to add this to my ~/.cshrc: > > setenv LESS '-aciMs -j5' > > One of the handy items is the -j5 which places the search hit 5 lines > from the top of the screen/window so you can see some of what precedes > it. Super cool! Thanks for the tip :)