From owner-freebsd-questions@FreeBSD.ORG Wed Oct 26 06:37:04 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B72E01065673 for ; Wed, 26 Oct 2011 06:37:04 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from asmtp1.iomartmail.com (asmtp1.iomartmail.com [62.128.201.248]) by mx1.freebsd.org (Postfix) with ESMTP id 404228FC12 for ; Wed, 26 Oct 2011 06:37:03 +0000 (UTC) Received: from asmtp1.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp1.iomartmail.com (8.13.8/8.13.8) with ESMTP id p9Q6b1fv029253; Wed, 26 Oct 2011 07:37:01 +0100 Received: from orange.esperance-linux.co.uk (host-92-22-130-66.as13285.net [92.22.130.66]) (authenticated bits=0) by asmtp1.iomartmail.com (8.13.8/8.13.8) with ESMTP id p9Q6b0A3029232; Wed, 26 Oct 2011 07:37:01 +0100 Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 8304733C1F; Wed, 26 Oct 2011 07:37:00 +0100 (BST) Date: Wed, 26 Oct 2011 07:37:00 +0100 From: Frank Shute To: Warren Block Message-ID: <20111026063700.GC43990@orange.esperance-linux.co.uk> References: <20111026032037.23014255@davenulle.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iFRdW5/EC4oqxDHL" Content-Disposition: inline In-Reply-To: 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 8.2-STABLE amd64 X-Organisation: 'shute.org.uk' Cc: Adam Vande More , questions@freebsd.org, Patrick Lamaiziere Subject: Re: nice man pages? 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, 26 Oct 2011 06:37:04 -0000 --iFRdW5/EC4oqxDHL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 25, 2011 at 11:34:18PM -0600, Warren Block wrote: > > On Tue, 25 Oct 2011, Adam Vande More wrote: >=20 > >On Tue, Oct 25, 2011 at 8:20 PM, Patrick Lamaiziere > >wrote: > > > >>Hello, > >> > >>I use sysutils/most to have nice manual pages in color, that's cool but > >>is there a way to do this with the base system (ie without adding port)? > >> > >> > >https://wiki.archlinux.org/index.php/Man_Page >=20 > A) printf on FreeBSD doesn't do \e, so use \033 instead. >=20 > B) My eyes! Agree on B! You can change the colours of course. http://www.understudy.net/custom.html#table2 shows the colour codes. I changed mine to this: man() { env \ LESS_TERMCAP_mb=3D$(printf "\033[1;34m") \ LESS_TERMCAP_md=3D$(printf "\033[1;34m") \ LESS_TERMCAP_me=3D$(printf "\033[0m") \ LESS_TERMCAP_se=3D$(printf "\033[0m") \ LESS_TERMCAP_so=3D$(printf "\033[1;44;33m") \ LESS_TERMCAP_ue=3D$(printf "\033[0m") \ LESS_TERMCAP_us=3D$(printf "\033[0;35m") \ man "$@" } in ~/.kshrc Regards, --=20 Frank Contact info: http://www.shute.org.uk/misc/contact.html --iFRdW5/EC4oqxDHL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk6nqosACgkQHduKvUAgeK6saQCeOQcTBHDt2jKTPTt4H32BBHIz sXAAnix0Tceg5daGDndZNy6TtG1PATtH =BZk9 -----END PGP SIGNATURE----- --iFRdW5/EC4oqxDHL--