Re: c program running 2 terminal windows, how to specify in which to write?

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/29/04


Date: Thu, 29 Apr 2004 02:22:47 -0400

In article <c6pmap$efg5j$1@uni-berlin.de>,
 Jens.Toerring@physik.fu-berlin.de wrote:

> Probably you're already on the
> right track with popen(), just write the texts you want to appear
> in the new terminal to the FILE* you received from the popen()
> call, using fprintf() instead of printf().

I doubt this would work. This will write to gnome_terminal's standard
input, but I doubt that it reads from its standard input. I expect that
it's like xterm -- it reads its input from the X window that it opens.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***