c program running 2 terminal windows, how to specify in which to write?
From: Achraf (achraf123_at_hotmail.com)
Date: 04/29/04
- Next message: Andrew Falanga: "Re: help with socket code"
- Previous message: SM Ryan: "Re: C static program analyzer"
- Next in thread: Barry Margolin: "Re: c program running 2 terminal windows, how to specify in which to write?"
- Reply: Barry Margolin: "Re: c program running 2 terminal windows, how to specify in which to write?"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: c program running 2 terminal windows, how to specify in which to write?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Apr 2004 16:49:24 -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");
or
popen("gnome_terminal", "w");
but with no results!!!
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
- Next message: Andrew Falanga: "Re: help with socket code"
- Previous message: SM Ryan: "Re: C static program analyzer"
- Next in thread: Barry Margolin: "Re: c program running 2 terminal windows, how to specify in which to write?"
- Reply: Barry Margolin: "Re: c program running 2 terminal windows, how to specify in which to write?"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: c program running 2 terminal windows, how to specify in which to write?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|