Re: redirecting stdout to a text widget



Hi,

On Fri, Jan 24, 2003 at 09:39:46AM -0700, Michael L Torrie wrote:
On Wed, 2003-01-22 at 15:44, Janelle Contreras wrote:
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.

A couple of things come to mind.  There's popen.  That creates a pipe,
runs an application and connects it's standard out to the pipe (maybe
standard in to, so you can control the app).
<snip>

Actually, zvt term can do this all for you, with zvt_term_forkpty. Just
make sure you don't do any GUI output anymore in the child or hell will
come upon you.


Regards,

Filip

-- 
"In the force if Yoda's so strong, construct a sentence with words in
 the proper order then why can't he?"
        -- Manoj Srivastava



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