redirecting stdout to a text widget



Ok, I need help on how to redirect stdout to a text widget.  I am writing a
gui type shell used in the debug mode of our software, and many of the
libraries use printf's to make debugging comments.  Also the commands for
the shell that the gtk gui is executing use printf's to show their help
messages.  Anyway, I need to be able to redirect text that is going to
stdout through the printf's to my text widget.  I have seen some examples on
previous lists - mostly in perl which I am unfamiliar with.  My application
is in C.  I have also seen references to popen, but I am not sure how to use
it in my context.  I could direct it all to a file, and then read the file,
but it seams there would be a better way. 

Thanks for any help in advance!!

Janelle

<<attachment: winmail.dat>>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]