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>

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

[-- Attachment #1 --]
On Tue, Oct 25, 2011 at 11:34:18PM -0600, Warren Block wrote:
>
> On Tue, 25 Oct 2011, Adam Vande More wrote:
> 
> >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
> 
> A) printf on FreeBSD doesn't do \e, so use \033 instead.
> 
> 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=$(printf "\033[1;34m") \
                LESS_TERMCAP_md=$(printf "\033[1;34m") \
                LESS_TERMCAP_me=$(printf "\033[0m") \
                LESS_TERMCAP_se=$(printf "\033[0m") \
                LESS_TERMCAP_so=$(printf "\033[1;44;33m") \
                LESS_TERMCAP_ue=$(printf "\033[0m") \
                LESS_TERMCAP_us=$(printf "\033[0;35m") \
                        man "$@"
}

in ~/.kshrc


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAk6nqosACgkQHduKvUAgeK6saQCeOQcTBHDt2jKTPTt4H32BBHIz
sXAAnix0Tceg5daGDndZNy6TtG1PATtH
=BZk9
-----END PGP SIGNATURE-----
help

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