From owner-freebsd-arch Sun Oct 20 23:53:32 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 DAC9E37B401 for ; Sun, 20 Oct 2002 23:53:30 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B45B43E7B for ; Sun, 20 Oct 2002 23:53:12 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g9L6puw16321; Mon, 21 Oct 2002 09:51:56 +0300 (EEST) (envelope-from ru) Date: Mon, 21 Oct 2002 09:51:56 +0300 From: Ruslan Ermilov To: "Andrey A. Chernov" Cc: Terry Lambert , "M. Warner Losh" , arch@FreeBSD.ORG Subject: Re: color, again, in grotty Message-ID: <20021021065156.GB14584@sunbay.com> References: <20021017.101833.110719994.imp@bsdimp.com> <20021018095026.GA3386@sunbay.com> <20021018.094801.123456703.imp@bsdimp.com> <3DB06A8B.E40B3004@mindspring.com> <20021018201919.GA15100@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline In-Reply-To: <20021018201919.GA15100@nagual.pp.ru> User-Agent: Mutt/1.3.99i 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 --V0207lvV8h4k8FAm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 19, 2002 at 12:19:19AM +0400, Andrey A. Chernov wrote: > On Fri, Oct 18, 2002 at 13:09:47 -0700, Terry Lambert wrote: > >=20 > > > : So we must either fix syscons(4) or to somehow tell grotty(1) to > > > : emit old sequences to print bold and italic characters. > >=20 > > Fixing Grotty to use the termcap ("TermCap" -- Terminal Capabilities) > > database is the correct approach, in almost all cases. >=20 > I agree. Grotty should get termcap color capabilities using TERM env. =20 > 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. 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 --V0207lvV8h4k8FAm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD4DBQE9s6QMUkv4P6juNwoRAlShAJUSl9nh0y1LJPDXQbewce4TtzdoAKCA47B6 2YOra/Wl/HnJrqPdfSpgOg== =x09x -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message