Date: Mon, 21 Oct 2002 10:28:55 +0300 From: Peter Pentchev <roam@ringlet.net> To: Lyndon Nerenberg <lyndon@orthanc.ab.ca> Cc: Ruslan Ermilov <ru@FreeBSD.ORG>, "Andrey A. Chernov" <ache@nagual.pp.ru>, Terry Lambert <tlambert2@mindspring.com>, "M. Warner Losh" <imp@bsdimp.com>, arch@FreeBSD.ORG Subject: Re: color, again, in grotty Message-ID: <20021021072855.GD389@straylight.oblivion.bg> In-Reply-To: <200210210705.g9L75t88021005@orthanc.ab.ca> References: <20021021065156.GB14584@sunbay.com> <200210210705.g9L75t88021005@orthanc.ab.ca>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Mon, Oct 21, 2002 at 01:05:55AM -0600, Lyndon Nerenberg wrote:
> Ruslan Ermilov writes:
>
> >> I agree. Grotty should get termcap color capabilities using TERM env. =20
> >> variable, if output isatty(). That is termcap purpose.
> >>
> >It is almost never isatty(), because the most typical scenario is
> >to pass the output through a pipe to ${PAGER}, or to a compressor.
I was trying to stay out of this discussion, so I did not post this
yesterday - the first thing that came to my mind when Andrey suggested
isatty() was the PAGER pipe. So, no, isatty() would not work indeed.
> The default output format for nroff (and grotty) must continue to be for
> a dumb, overstriking, hardcopy printer. Changing this breaks too many
> things. If the GNU folks insist on having color printing on their ANSI
> terminals they should create a groansi, use 'groff -Tansi', and leave
> nroff alone.
Seconded, strongly. This would be the best approach IMHO.
G'luck,
Peter
--
Peter Pentchev roam@ringlet.net roam@FreeBSD.org
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
I am not the subject of this sentence.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)
iD8DBQE9s6y37Ri2jRYZRVMRAmIIAJ4rcca/xhjl9SHWyezmvm/xzv1D4QCcCrIL
+d9K4i5CBZhy+fX2rETALmY=
=aq8F
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021021072855.GD389>
