delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/18/12:15:55

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cprinf REdirected
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <q009ns07hder4csv99j2kanjrdsmqk1s7l@4ax.com>
References: <9bf6nsseur50auc08a2u1pb61in2oum79j AT 4ax DOT com> <jl38nsc64emgr9rjpn4vn6h2errgcols2d AT 4ax DOT com>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 27
X-Trace: /K49oFWJ5XegeQVSxMxnYNF0PaQRgItgtUpyIxPmNLE4DeveREpjydhIUZHe1LeHWFMap5wg+4Oe!CodWXSKABmukYKv8fUGYH49ZBnboz6BbVq0Z20vUE8NKeUMFHe3RG14HBi7V78xN/KQZNThpdiny!cgg=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 18 Jul 2000 16:06:39 GMT
Distribution: world
Date: Tue, 18 Jul 2000 16:06:40 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 18 Jul 2000 04:04:57 -0400, Radical NetSurfer
<radsmail AT juno DOT com> wrote:

>'cprintf' delivers TEXT to a DOS TEXT-mode screen,
>with the __addition__ of supporting TEXT-attributes for setting
>color/etc. 
>
>First of all, (trust me here):
>    cprintf    CAN BE re-directed; _IF_ properly implemented!
>
>DOES ANYONE understand what the DJGPP DOC's are
>trying to say about this issue?  Re-directing text in    cprintf
>to a file/etc as plain ASCII text, as opposed to displaying the
>text with attribute (background/foreground color) when simply going to
>the screen ??   DJGPP DOC's say its possible using the higher-oder
>system level modifications... HOW IS THIS DONE PLEASE?

isatty(), a POSIX function, helps the program determine whether stdout
is a file or a display.

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019