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

From: Achraf (achraf123_at_hotmail.com)
Date: 04/28/04


Date: 27 Apr 2004 21:27:03 -0700

Hi all,

I have a c program under linux, while running, it opens a new terminal
windows using a system call. I would like to display messages on both
windows.
But I can't find a way to specify the terminal window I want to write
in.

The program is for chat and I want to keep a terminal window to write
incoming messages, and use the other one for operation like sending
messages or viewing list of nicks in the room....

To start the new window, i use the command:
system("gnome-terminal");

but I really can't see if there is some possible way to write to it,
all my messages keep arriving in the original window.

If there is any way you can help me, I will be very thankful,

Thanks to all of you guys,
Achraf



Relevant Pages

  • Re: Bit Twister: Is this the dhclient-exit-hooks you were talking about?
    ... It lets you take a screenshot ... See slrn running in the term window? ... Redhat left the linux user community in the lurch awhile back ... She will go for that and then I can get on with the FC5 install that I ...
    (alt.os.linux)
  • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
    ... You don't have to install any networking ... > know linux, but there seems to be several "window" managers available. ... underlying API, Xlib in this case, is too complicated to use. ...
    (alt.lang.asm)
  • Re: OpenOffice and Leopard
    ... Those are almost certainly OpenOffice bugs. ... Which explains why it's available on Windows, Solaris, MacOS X, and FreeBSD, as well as Linux. ... It can't be Linux-specific, as it was developed out of the X Window System ... I should have said X Window instead of Linux, but I have never used any OS but Mac and adaptations for Mac, i. e., SoftWindows, etc. ...
    (comp.sys.mac.apps)
  • Re: Prob w/ virtual terminals
    ... And a lot of Linux distros are going down that same path. ... interfaces like KDE/Gnome that are making this possible. ... I have X and a window manager and a mouse. ... I use graphical applications. ...
    (comp.os.linux.setup)
  • Re: Why do some distros have SH opened by Kwrite?
    ... Even in the distro that did launch it, ... if such a thing is possible in Linux which I don't see ... something that once Window$ is ... I'll give them some time to adapt and then install Linux completely ...
    (alt.os.linux)