Re: nice man pages?
--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--
討論串 (同標題文章)
完整討論串 (本文為第 6 之 14 篇):