Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2002 09:30:59 +0700
From:      Alexey Dokuchaev <danfe@nsu.ru>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        Giorgos Keramidas <keramida@ceid.upatras.gr>, "Greg 'groggy' Lehey" <grog@freebsd.org>, Tony Finch <dot@dotat.at>, cvs-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: Coloured manpages (was: Re: cvs commit: src/gnu/usr.bin/man Makefile.inc src/share/mk bsd.man.mk src/usr.bin/catman catman.c)
Message-ID:  <20021016023059.GD72251@regency.nsu.ru>
In-Reply-To: <20021015143304.GB12329@sunbay.com>
References:  <200210110916.g9B9GP8f064951@freefall.freebsd.org> <20021012040759.A23338@chiark.greenend.org.uk> <20021012155812.GA36832@sunbay.com> <20021013003257.GA64063@wantadilla.lemis.com> <20021013081038.GA14919@sunbay.com> <20021015094930.GB2083@hades.hell.gr> <20021015143304.GB12329@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 15, 2002 at 05:33:04PM +0300, Ruslan Ermilov wrote:
> On Tue, Oct 15, 2002 at 12:49:31PM +0300, 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.
> > 
> > If I'm completely out of topic and the changes are not going to force
> > reverse video instead of the old underline attribute for italicised
> > text, please ignore this... I haven't had the time to look at the
> > changes yet, since my latest buildworld is still running.
> > 
> The problem is that without these hacks, "italic" fonts appear just
> like "bold", which worsens the quality of the generated catpages:
> both .Cm and .Ar, for example, look the same.  And we certainly do
> not want our manpages look bad on our default terminal, do we?
> 
> grotty(1) renders italic fonts with the help of the underlined
> attribute.  syscons(4) does not distinguish between bold and
> underlined attributes.  The offending code is in sys/dev/syscons/
> scterm-sc.c:mask2attr().  The are three options here:
> 
> 1.  Keep the color support turned off for catpages and man(1).
> 2.  Fix the syscons(4) to render underlined attribute in some way
>     distinguishable from "bold".
> 3.  Turn the color support back on but pass the -r option to
>     grotty(1) which tells it to use the "reverse video" attribute
>     to render italic fonts.  This keeps the "cons25" output the
>     old way, but worsens the "xterm" output, which will now render
>     the underlined text as "reverse".

Could we patch /usr/share/misc/termcap maybe (cons25w entry)?  This will
leave xterm along (since it does play nicely already) and console output
will get prettier.

./danfe


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?20021016023059.GD72251>