delorie.com/archives/browse.cgi | search |
Date: | Sun, 18 Feb 2001 20:48:48 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | JT Williams <jeffw AT darwin DOT sfbr DOT org> |
Message-Id: | <1659-Sun18Feb2001204848+0200-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 |
CC: | djgpp-workers AT delorie DOT com |
In-reply-to: | <20010218111553.B19831@kendall.sfbr.org> (message from JT |
Williams on Sun, 18 Feb 2001 11:15:53 -0600) | |
Subject: | Re: GNU_grep-2.5c_beta |
References: | <200102180625 DOT BAA21110 AT qnx DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1010218105550 DOT 5826C-100000 AT is> <20010218111553 DOT B19831 AT kendall DOT sfbr DOT org> |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> Date: Sun, 18 Feb 2001 11:15:53 -0600 > From: JT Williams <jeffw AT darwin DOT sfbr DOT org> > > -: I'd argue that, once printed text is anything beyond simple ASCII text, a > -: text-mode application such as Grep should use specialized functions to > -: print the text with whatever markup it wants. > > are you saying that individual programs > (e.g., `grep') should know how to handle screen-specific stuff like colors? They should know that screen-specific stuff requires screen-specific functions. Magic escape sequences printed via fprintf are non-portable to any system whose terminal driver doesn't include ANSI support. > Isn't this sort of thing properly handled by termio/termcap/whatever? It is. But please note that even termcap requires that you call specialized functions, such as tgetent, tputs, etc.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |