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 > ><patf...@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
pgpbCwesTnBsp.pgp
Description: PGP signature