Mail Archives: djgpp/2000/07/17/15:15:52
On Mon, 17 Jul 2000 13:12:58 -0400, Radical NetSurfer
<radsmail AT juno DOT com> wrote:
>This is the second time I've posted this (it wasn't noticed; or no
>response given the first time):
>
>I was wondering if anyone out there knew how to get the proper
>behavior from cprinf such that when DOS re-direction is used,
>the ascii text (no attribute of course) is STILL CAPTURED, as if
>ordinary printf was used.
>I get the impression by looking over the material in the libc docs,
>and/or GCC docs that this is (could be) possible given the proper set
>up, system inter-ception, etc. of the re-direction and cprintf text
>"trapping" if re-direction is detected....
>IF SOMEONE knows how to accomplish this, PLEASE provide a working
>example either posted here or send it to me via Email thanks!
Instead of using cprintf() (which can't be redirected and is not
portable), use printf() and ANSI.sys sequences.
--
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 -