From owner-freebsd-arch Mon Oct 21 0:29:21 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3D6C37B401 for ; Mon, 21 Oct 2002 00:29:19 -0700 (PDT) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id A0E7843E75 for ; Mon, 21 Oct 2002 00:29:16 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 4311 invoked by uid 1000); 21 Oct 2002 07:28:55 -0000 Date: Mon, 21 Oct 2002 10:28:55 +0300 From: Peter Pentchev To: Lyndon Nerenberg Cc: Ruslan Ermilov , "Andrey A. Chernov" , Terry Lambert , "M. Warner Losh" , arch@FreeBSD.ORG Subject: Re: color, again, in grotty Message-ID: <20021021072855.GD389@straylight.oblivion.bg> Mail-Followup-To: Lyndon Nerenberg , Ruslan Ermilov , "Andrey A. Chernov" , Terry Lambert , "M. Warner Losh" , arch@FreeBSD.ORG References: <20021021065156.GB14584@sunbay.com> <200210210705.g9L75t88021005@orthanc.ab.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w7PDEPdKQumQfZlR" Content-Disposition: inline In-Reply-To: <200210210705.g9L75t88021005@orthanc.ab.ca> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --w7PDEPdKQumQfZlR Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 21, 2002 at 01:05:55AM -0600, Lyndon Nerenberg wrote: > Ruslan Ermilov writes: >=20 > >> I agree. Grotty should get termcap color capabilities using TERM env. = =3D20 > >> variable, if output isatty(). That is termcap purpose. > >>=20 > >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 --=20 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. --w7PDEPdKQumQfZlR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE9s6y37Ri2jRYZRVMRAmIIAJ4rcca/xhjl9SHWyezmvm/xzv1D4QCcCrIL +d9K4i5CBZhy+fX2rETALmY= =aq8F -----END PGP SIGNATURE----- --w7PDEPdKQumQfZlR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message