From owner-freebsd-questions@FreeBSD.ORG Wed Oct 26 08:10:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F266F106564A for ; Wed, 26 Oct 2011 08:10:47 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9C1598FC13 for ; Wed, 26 Oct 2011 08:10:47 +0000 (UTC) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id p9Q8Akj5009481 for ; Wed, 26 Oct 2011 04:10:46 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id p9Q8AkEC009478 for freebsd-questions@freebsd.org; Wed, 26 Oct 2011 04:10:46 -0400 (EDT) Date: Wed, 26 Oct 2011 04:10:46 -0400 From: Thomas Dickey To: freebsd-questions@freebsd.org Message-ID: <20111026081045.GA8798@saltmine.radix.net> References: <20111026032037.23014255@davenulle.org> <87obx44d5w.fsf@oak.localnet> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <87obx44d5w.fsf@oak.localnet> User-Agent: Mutt/1.3.27i Subject: Re: nice man pages? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2011 08:10:48 -0000 --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 25, 2011 at 08:58:19PM -0700, Carl Johnson wrote: > Patrick Lamaiziere writes: >=20 > > 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)? >=20 > 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. >=20 > It is short, so my ~/.termcap is below: >=20 > ---------------------- snip ------------------- > # this is just changes to the standard FreeBSD termcaps - 2010-12-13 cdj >=20 > xterm|xterm-color|X11 terminal emulator:\ > :md=3D\E[33;1m:so=3D\E[36;1m:se=3D\E[0m:us=3D\E[32;4m:ue=3D\E[0;2= 4m:\ > :ti@:te@:tc=3Dxterm-xfree86: >=20 > rxvt|rxvt terminal emulator (X Window System):\ > :md=3D\E[33;1m:so=3D\E[36;1m:se=3D\E[0m:us=3D\E[32;4m:ue=3D\E[0;2= 4m:\ > :pa#64:Co#8:AF=3D\E[3%dm:AB=3D\E[4%dm:op=3D\E[39;49m:\ > :tc=3Drxvt-mono: > ---------------------- snip ------------------- >=20 > 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. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFOp8CEtIqByHxlDocRAnt+AJ4nEmCJPb3GQpRq7wAUuex8pmTzKwCgpKac 9r4zoPdEPc3pjU0SdpaG2pM= =aV4O -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1--