^Z problem in curses

Adrian Mariano theorem at blake.u.washington.edu
Fri Sep 21 18:42:11 AEST 1990


I have a program that uses the curses I/O interface.  When it is
run from another program
     sh -c "myprogram..."
for example, ^Z doesn't always work properly.  Sometimes it works ok, 
moving the cursor to the bottom of the screen and saying 'Stopped' but
sometimes, it doesn't relocate the cursor, and prints "Stopped" on
top of the text on the screen.  A subsequent 'fg' does not resume.  Rather,
"Stopped" is printed at the bottom of the screen.  A SECOND 'fg' resumes
normally.

Can anybody tell me how to fix this?



More information about the Comp.unix.programmer mailing list