Multiple processes using the curses library

Multiple processes using the curses library

Post by bee3_ » Fri, 11 May 2001 00:11:12



I am trying to write a program that runs under a vt100 terminal which splits the
screen into two smaller ones using the curses library. I want the display in
each window to be from seperate processes - one is the original program the
other is a child that is created by using fork().

At the moment I am having difficulty in getting the two processes to share the
terminal screen despite having non-overlapping subwindows. I have used the
newwin() command from curses to make each window with different sizes and
co-ordinates from within each process. For some reason the child process stops
running when it initialises the screen using newwin().

Can anyone suggest a way around this? Many thanks in advance.

 
 
 

Multiple processes using the curses library

Post by Thomas Dicke » Fri, 11 May 2001 02:31:24



Quote:> I am trying to write a program that runs under a vt100 terminal which splits the
> screen into two smaller ones using the curses library. I want the display in
> each window to be from seperate processes - one is the original program the
> other is a child that is created by using fork().
> At the moment I am having difficulty in getting the two processes to share the
> terminal screen despite having non-overlapping subwindows. I have used the
> newwin() command from curses to make each window with different sizes and
> co-ordinates from within each process. For some reason the child process stops
> running when it initialises the screen using newwin().
> Can anyone suggest a way around this? Many thanks in advance.

make one process own the display and obtain input from the other(s).

--

http://dickey.his.com
ftp://dickey.his.com

 
 
 

1. Multiple processes using the curses library

I am trying to write a program that runs under a vt100 terminal which splits the
screen into two smaller ones using the curses library. I want the display in
each window to be from seperate processes - one is the original program the
other is a child that is created by using fork().

At the moment I am having difficulty in getting the two processes to share the
terminal screen despite having non-overlapping subwindows. I have used the
newwin() command from curses to make each window with different sizes and
co-ordinates from within each process. For some reason the child process stops
running when it initialises the screen using newwin().

Can anyone suggest a way around this? Many thanks in advance.

2. Xwindows Emulators

3. Curses and multiple processes

4. NIS+ between 2.4 and 2.5

5. Using getyx() from Curses library

6. root account lock

7. Segmentation Fault using Curses Library

8. What Are These Files In /etc/sysconfig/network-scripts?

9. help with using curses library

10. Using UNIX libraries (reg. exp & curses)

11. Q:Looking for a curses library using DOS

12. Building a shared library using curses?

13. Can I write curses-like application without using <curses.h>?