Date: Mon, 21 Oct 2002 09:51:56 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: "Andrey A. Chernov" <ache@nagual.pp.ru> Cc: Terry Lambert <tlambert2@mindspring.com>, "M. Warner Losh" <imp@bsdimp.com>, arch@FreeBSD.ORG Subject: Re: color, again, in grotty Message-ID: <20021021065156.GB14584@sunbay.com> In-Reply-To: <20021018201919.GA15100@nagual.pp.ru> 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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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:
> >
> > > : So we must either fix syscons(4) or to somehow tell grotty(1) to
> > > : emit old sequences to print bold and italic characters.
> >
> > Fixing Grotty to use the termcap ("TermCap" -- Terminal Capabilities)
> > database is the correct approach, in almost all cases.
>
> I agree. Grotty should get termcap color capabilities using TERM env.
> 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.
Cheers,
--
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)
iD4DBQE9s6QMUkv4P6juNwoRAlShAJUSl9nh0y1LJPDXQbewce4TtzdoAKCA47B6
2YOra/Wl/HnJrqPdfSpgOg==
=x09x
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021021065156.GB14584>
