Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2002 17:33:04 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        "Greg 'groggy' Lehey" <grog@FreeBSD.ORG>, Tony Finch <dot@dotat.at>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   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:  <20021015143304.GB12329@sunbay.com>
In-Reply-To: <20021015094930.GB2083@hades.hell.gr>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--61jdw2sOBCFtR2d/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> I mostly use cons25 terminals to fire up screen(1) and this is a local
> change that I keep around in my .screenrc files:
>=20
> 	termcap cons* us=3D\E[36m:ue=3D\E[m
>=20
> 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=3D\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.
>=20
> 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.
>=20
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".


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--61jdw2sOBCFtR2d/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9rCcgUkv4P6juNwoRAmE8AJ4/Bb1AC+Ngc5JQ+09O6SUPeDXFOgCfeYXC
MohTPC1WZ+v98HmcP3J4BFs=
=Jrqq
-----END PGP SIGNATURE-----

--61jdw2sOBCFtR2d/--

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?20021015143304.GB12329>