From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: cprinf REdirected Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <9bf6nsseur50auc08a2u1pb61in2oum79j AT 4ax DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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/