Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2002 14:50:47 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        Terry Lambert <tlambert2@mindspring.com>, "M. Warner Losh" <imp@bsdimp.com>, arch@FreeBSD.ORG
Subject:   Re: color, again, in grotty
Message-ID:  <20021021105047.GA22255@nagual.pp.ru>
In-Reply-To: <20021021074056.GE14584@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> <20021021065156.GB14584@sunbay.com> <3DB3A962.9F26FCA0@mindspring.com> <20021021074056.GE14584@sunbay.com>

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

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

On Mon, Oct 21, 2002 at 10:40:56 +0300, Ruslan Ermilov wrote:

> So far nobody told me what would be the correct alternative way to
> support colors in grotty(1).  I tried the isatty() + libtermcap
> approach first, but it died horribly because the output is almost
> never a TTY.  It became apparent to me that grotty(1) cannot use
> libtermcap, because it never knows what TERM it will be displayed
> on -- quite often the grotty(1) output is saved for future reference
> (e.g., in the form of catpages).  Such an alternative would be to
> write a filter (similar to or extending the functionality of ul(1))
> that would be capable of parsing the ANSI SGR attribute/color
> sequences and translate them to the right sequences for a given
> output device, or to strip them off completely.

I already tell correct alternative in my other mail to this thread,=20
without isatty, I mean

Message-ID: <20021019135038.GA37956@nagual.pp.ru>

=46rom it you can see how grotty _can_ use libtermcap without isatty, if=20
final device is known beforehead.

--=20
Andrey A. Chernov=20
http://ache.pp.ru/

--wac7ysb48OaltWcw
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iQCVAwUBPbPcB+JgpPLZnQjrAQH2dwP/TGZIielN/8AVG5u5q0qnG1p6O5aEN5EO
UCFyQGnBE4ZuwdyXwSzAJDdfG8BhxQz39rlQbBpjN581fKwWcGewTDpDK+AOt58u
hKveG1dx7lym/YRNfuzITFBp+t5i5cuS1q9R49q8e2IxaSjP/+VwQvCVHph/lZaH
7DnPLzzSwxs=
=aaWn
-----END PGP SIGNATURE-----

--wac7ysb48OaltWcw--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021021105047.GA22255>