nice man pages?

Frank Shute frank at shute.org.uk
Wed Oct 26 06:37:04 UTC 2011


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 at 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20111026/c6327037/attachment.pgp


More information about the freebsd-questions mailing list