Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Oct 2011 07:37:00 +0100
From:      Frank Shute <frank@shute.org.uk>
To:        Warren Block <wblock@wonkity.com>
Cc:        Adam Vande More <amvandemore@gmail.com>, questions@freebsd.org, Patrick Lamaiziere <patfbsd@davenulle.org>
Subject:   Re: nice man pages?
Message-ID:  <20111026063700.GC43990@orange.esperance-linux.co.uk>
In-Reply-To: <alpine.BSF.2.00.1110252331240.84368@wonkity.com>
References:  <20111026032037.23014255@davenulle.org> <CA%2BtpaK16EQemh=YjzJ_tm5ABt0J_uFp-SEqwxpTwKwyNNEqCtw@mail.gmail.com> <alpine.BSF.2.00.1110252331240.84368@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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
> ><patfbsd@davenulle.org>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--



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