Mail Archives: djgpp/1999/12/28/17:04:25
On Sun, 26 Dec 1999, Laurence Withers wrote:
> A program I am writing runs external programs through the "system"
> command. However, I need to access their stdin, stdout and stderr
> streams. I have looked at the 'redir' sources, but they just redirect
> through file handles.
That's what redirection is about: you assign the file handle to a
different file/device.
> I need more control than this: I need to immediately have access to
> stdout and stderr, and stdin will be handled by my own keyboard
> handler.
Please tell more about what does ``immediate access to stdout and
stderr'' mean. What exactly are you trying to accomplish?
As for the keyboard input, this should be automatic: if you hook the
keyboard interrupt, you will see all the keystrokes, even those
pressed when the child program runs. What you do with these
keystrokes is another matter; please describe what you want to do with
them in more detail.
- Raw text -