From owner-freebsd-questions@FreeBSD.ORG Wed Oct 26 17:49: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 AC745106568B for ; Wed, 26 Oct 2011 17:49:47 +0000 (UTC) (envelope-from carlj@peak.org) Received: from redcondor2.peak.org (redcondor2.peak.org [69.59.192.56]) by mx1.freebsd.org (Postfix) with ESMTP id 7B9708FC2A for ; Wed, 26 Oct 2011 17:49:47 +0000 (UTC) Received: from zmail-mta01.peak.org ([207.55.16.111]) by redcondor2.peak.org ({6c724cae-de34-4c5f-b615-3072b86419fa}) via TCP (outbound) with ESMTP id 20111026174947002 for ; Wed, 26 Oct 2011 17:49:47 +0000 X-RC-FROM: X-RC-RCPT: Received: from maple.localnet (unknown [207.55.106.132]) by zmail-mta01.peak.org (Postfix) with ESMTPSA id B671F4927C8 for ; Wed, 26 Oct 2011 10:49:46 -0700 (PDT) Received: from oak.localnet (oak.localnet [IPv6:2001:1938:266::6f:616b]) by maple.localnet (Postfix) with ESMTP id DFBCC61F71 for ; Wed, 26 Oct 2011 10:49:45 -0700 (PDT) Received: from oak.localnet (localhost.localnet [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id B53F1C05D for ; Wed, 26 Oct 2011 10:49:45 -0700 (PDT) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id p9QHnjGS081239; Wed, 26 Oct 2011 10:49:45 -0700 (PDT) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org References: <20111026032037.23014255@davenulle.org> <87obx44d5w.fsf@oak.localnet> Mail-Followup-To: freebsd-questions@freebsd.org Date: Wed, 26 Oct 2011 10:49:45 -0700 In-Reply-To: <87obx44d5w.fsf@oak.localnet> (Carl Johnson's message of "Tue, 25 Oct 2011 20:58:19 -0700") Message-ID: <87aa8n4p8m.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 17:49:47 -0000 Carl Johnson writes: > Patrick Lamaiziere 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. Obviously I hadn't thought that through since there is no xterm in the base system, but both the xterm and rxvt termcap entries seem to work on the console. Just to be sure I made up a colorized cons25 entry. I left in the underline attribute, even though the console doesn't seem to support underline. I also added the nc capability that Thomas Dickey suggested should be used. The revised version of my ~/.termcap is below if anybody is interested: -------- start ~/.termcap ------------- # these are just changes to the standard FreeBSD termcap - 2010-12-13 cdj # added cons25 and nc capability - 2011-10-26 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:nc#35:\ :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:nc#35:\ :pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:\ :tc=rxvt-mono: cons25|colorized version of cons25|:\ :md=\E[33;1m:so=\E[36;1m:se=\E[0m:us=\E[32;4m:ue=\E[0;24m:nc#35:\ :ac=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`^Da\260f\370g\361~\371.^Y-^Xh\261i^U0\333y\363z\362:\ :tc=cons25w: -------- end ~/.termcap ------------- Note that the ac capability in cons25 should be a single (long) line. -- Carl Johnson carlj@peak.org