PDA

View Full Version : Several Windows



Ada
10-14-2004, 05:02 AM
All my life i have been writing under Windows. Now I need to write some stuff under Linux. Can you help me?
The problem is:
I have a program under Linux. It works in one window - normally I start 'xterm' and after this program - so it works in text mode in 'xterm'. But now I need this program to have 3 different windows (text mode). Program needs to read from all windows and write to all windows.

Unfortunatelly, I have no idea how I can solve it.

Thank you very much indeed.

chrismiceli
10-14-2004, 08:39 AM
You need to look at pipes or shared memory, or some form of ipc (interprocess communication). Depends on how you want to do it.

jim mcnamara
10-14-2004, 11:15 AM
Maybe this will get you started -

http://www.faqs.org/faqs/unix-faq/programmer/faq/

Ada
10-15-2004, 05:10 AM
Thanks for your answers, guys.
But I actually need a real answer, I mean which functions should I use for my coding and in which order. But I dont wanna use Client-Server scheme. Using pipes is a really nice idea (I am playing around with fork() currently) but I dont really know how I can use it - which order and with what together.

kermit
10-16-2004, 12:27 PM
Thanks for your answers, guys.
But I actually need a real answer...


STFW. They gave you an answer. Its not like somebody is going to sit down and write a howto post for your problem. Its called research.

~/