Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2002 12:45:54 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        "Greg 'groggy' Lehey" <grog@FreeBSD.org>
Cc:        Giorgos Keramidas <keramida@ceid.upatras.gr>, 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:  <20021016094554.GA37150@sunbay.com>
In-Reply-To: <20021016013843.GP12010@wantadilla.lemis.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> <20021016013843.GP12010@wantadilla.lemis.com>

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

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

On Wed, Oct 16, 2002 at 11:08:44AM +0930, Greg 'groggy' Lehey wrote:
> On Tuesday, 15 October 2002 at 17:33:04 +0300, Ruslan Ermilov wrote:
> > 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".
>=20
> I'm not overly concerned about how nroff renders, but I'd like to see
> colour support enabled for troff.  Or is that already the case?  I
> can't see any conflict for troff.
>=20
Yes, it is.  Neither troff(1) nor nroff(1) are directly affected.
This is only the matter of how we call [gn]roff(1) when formatting
manpages for the TTY (-Tascii, -Tlatin1, and -Tkoi8-r) output.  I
was not precise in my commitlog wording.  I.e., when formatting
manpages (either from man(1), catman(1), or during the buildworld
if MANBUILDCAT is set), we now pass the -c option to grotty(1).

After a bit more thinking, testing, and reading messages in this
thread, I have decided to leave it that way.  Not all terminals
support ANSI SGR escapes, and having the catpages not readable
on these in unacceptable.  On the other hand, filters like ul(1)
and less(1) honour the terminal type and emit the right sequences
to emulate bold and italic fonts.


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

--mYCpIKhGyMATD0i+
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE9rTVSUkv4P6juNwoRAqV1AJ97D0Yh7OH7kGSZExT6ZulK72JeCwCfemeH
Yk2m4aPeynwBx62gTefI03M=
=LVLM
-----END PGP SIGNATURE-----

--mYCpIKhGyMATD0i+--

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?20021016094554.GA37150>