Mail Archives: djgpp/1997/04/10/22:59:03
Doug Eleveld wrote:
>
> I' know how to redirect stderr to a file and such, but what I'd like
> to do is have my program process all the text that would normally
> go to stderr (or stdout or from stdin) and display it in a window
> in graphics mode. Do I have to take over a FILE* and then redirect to
> that FILE*? Is there a more sensible way? Does anyone do this kind of
> stuff with DJGPP?
RHIDE does it. Emacs does it. 'redir', obviously, does it. ;) The
source for all of these is readily available. Check out the libc docs
on 'dup' and 'dup2', for starters.
--
John M. Aldrich <fighteer AT cs DOT com>
* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
again.
* It doesn't necessarily do it in chronological order, though.
--- Douglas Adams
- Raw text -