473,405 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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
Nov 14 '05 #1
2 2212
Achraf wrote:
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

There is a topic called IPC , which is out of topic of the current
newsgroup.
Check out comp.unix.programmer !

--
Karthik
Humans please 'removeme_' for my real email.
Nov 14 '05 #2
Achraf wrote:
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.


Try comp.os.linux.development.apps

Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Will Stuyvesant | last post by:
I never used the popen or popen2 libraries but it is my understanding that they can capture the output of console based programs. Is it also possible to send keystrokes to console base programs? ...
40
by: findmadhav | last post by:
I need a program in C (something like a TSR) which will automatically press the function key F6, say about every 5 seconds. Can anyone provide me with an exe of such a program? Thanks in advance.
29
by: keredil | last post by:
Hi, Will the memory allocated by malloc get released when program exits? I guess it will since when the program exits, the OS will free all the memory (global, stack, heap) used by this...
8
by: Sree | last post by:
hello friends, Can i make a C program run as as background service? for eg. like the windows services we have. which are not visible on the desktop but still running behind. If there is some...
4
by: Stylus277 | last post by:
Hello, I am working with a client that has an old Linux server with a custom cbase program. The server has been humming along since 1989, with the exception of a HDD fail in 1994, which was...
8
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I would like to find out how I can launch an independent Python program from existing one in a cross-platform way. The result I am after is that a new terminal window should open (for io...
37
by: Vince C. | last post by:
Hi all. I've installed Bloodshed Dev-C++ on a Windows 2000 SP4 machine. I'm using MinGW 3.4.2. I'd like to temporarily disable standard functions to write to stderr, i.e. for instance...
14
by: jmDesktop | last post by:
Hi, I'm trying to learn Python. I using Aquamac an emac implementation with mac os x. I have a program. If I go to the command prompt and type pythong myprog.py, it works. Can the program be...
11
by: 960392954 | last post by:
The Towers of Hanoi is a famous problem about moving a certain number of disks from one peg to another.I write a recursive program for it.If you have known it ,you can skip the program. #include...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.