Date: Wed, 26 Oct 2011 04:10:46 -0400 From: Thomas Dickey <dickey@radix.net> To: freebsd-questions@freebsd.org Subject: Re: nice man pages? Message-ID: <20111026081045.GA8798@saltmine.radix.net> In-Reply-To: <87obx44d5w.fsf@oak.localnet> References: <20111026032037.23014255@davenulle.org> <87obx44d5w.fsf@oak.localnet>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Tue, Oct 25, 2011 at 08:58:19PM -0700, Carl Johnson wrote: > Patrick Lamaiziere <patfbsd@davenulle.org> writes: > > > 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)? > > I use a colorized termcap with less, but it also works with > /usr/bin/more. It depends on what type of terminal you are using it > on. I have it for xterm and rxvt (which is what I use). This works for > manpages, but you can also colorize your prompt. > > It is short, so my ~/.termcap is below: > > ---------------------- snip ------------------- > # this is just changes to the standard FreeBSD termcaps - 2010-12-13 cdj > > xterm|xterm-color|X11 terminal emulator:\ > :md=\E[33;1m:so=\E[36;1m:se=\E[0m:us=\E[32;4m:ue=\E[0;24m:\ > :ti@:te@:tc=xterm-xfree86: > > rxvt|rxvt terminal emulator (X Window System):\ > :md=\E[33;1m:so=\E[36;1m:se=\E[0m:us=\E[32;4m:ue=\E[0;24m:\ > :pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:\ > :tc=rxvt-mono: > ---------------------- snip ------------------- > > All that does is set bold to yellow, standout to cyan, and underline to > green. I use white on black, so if you use something else you will > probably have to adjust the colors. I haven't tried 9.0, but this works > on 8.1-RELEASE and 8.2-RELEASE. You can decide for yourself if that > does what you want. fwiw, without also setting the NC capability (something like NC#35), it'll confuse curses/ncurses since that conflicts with the normal color controls. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFOp8CEtIqByHxlDocRAnt+AJ4nEmCJPb3GQpRq7wAUuex8pmTzKwCgpKac 9r4zoPdEPc3pjU0SdpaG2pM= =aV4O -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111026081045.GA8798>
