Date: Sun, 18 Feb 2001 20:48:48 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: JT Williams 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> <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 Precedence: bulk > Date: Sun, 18 Feb 2001 11:15:53 -0600 > From: JT Williams > > -: 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.