Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2002 02:56:37 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        Ruslan Ermilov <ru@FreeBSD.org>, "Greg 'groggy' Lehey" <grog@FreeBSD.org>, Tony Finch <dot@dotat.at>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/gnu/usr.bin/man Makefile.inc src/share/mk bsd.man.mk src/usr.bin/catman catman.c
Message-ID:  <20021016024550.H1243-100000@gamplex.bde.org>
In-Reply-To: <20021015094930.GB2083@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Oct 2002, Giorgos Keramidas wrote:

> On 2002-10-13 11:10, Ruslan Ermilov <ru@FreeBSD.ORG> wrote:
> > On Sun, Oct 13, 2002 at 10:02:57AM +0930, Greg 'groggy' Lehey wrote:
> > >
> > > I've been waiting for groff 1.18 exactly because of the colour
> > > support.  I can understand that it's a nuisance under the
> > > circumstances you describe, but I would be disappointed to see it
> > > turned off altogether.  There must be some way to just not make it the
> > > default.  Or is that what you're doing?
> >
> > Yes.  I've sent the patch for grotty(1) that allows it to use the
> > "reverse video" attribute to render the italic font in the nroff
> > mode.  After this is accepted (and I'm sure it will be), I plan
> > to import the patch and turn the color support back on.
>
> I mostly use cons25 terminals to fire up screen(1) and this is a local
> change that I keep around in my .screenrc files:
>
> 	termcap cons* us=\E[36m:ue=\E[m
>
> The added termcap capabilities make underlined text come up as cyan,
> which makes manpages a lot more readable than reverse video (I've
> tried using us=\E[7m for a while, but the results weren't very
> pleasing to the eye).  If it's not a rather hard thing to support, I'd
> really vote for keeping the colour support enabled, instead of using
> reverse video for underlined/italic text in nroff.

I use the following to map reverse video to a color for cons25 (white on
blue actually -- it's still sort of reverse video, but has better colors
than inverting the foreground and background would normally give).  This
also gives a cyan foreground.

%%%
case $TERM in
cons25)
	printf '\033[0x\033[2;6x\033[6;7x\033[5;4x'
	;;
pcvt*)
	printf '\033[0;4;37;44m\033d\033[0;7;37;44m\033d\033[0;36;40m\033d'
	;;
esac
%%%

The pcvt version may have rotted.  IIRC, this works better in pcvt because
the escape sequences give a harder setting (one not affected by '\033C').

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021016024550.H1243-100000>