Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!blake.u.washington.edu!theorem From: theorem@blake.u.washington.edu (Adrian Mariano) Newsgroups: comp.lang.c Subject: ^Z problems with curses Message-ID: <7841@milton.u.washington.edu> Date: 20 Sep 90 01:19:33 GMT Sender: news@milton.u.washington.edu Organization: University of Washington, Seattle Lines: 18 I have a program which uses curses for I/O. When the program is run in a subshell: sh -c "program..." for example, ^Z behaves strangely. It works properly part of the time, but the rest of the time, pressing ^Z prints a "Stopped" message in the middle of the screen instead of at the bottom. A subsequent 'fg' produces a "Stopped" message at the bottom of the screen. The original program included signal handlers for SIGTSTP and SIGCONT, but that version would fail catastrophically whenever ^Z was pressed if it was run within a subshell. (I had to log in again and use kill to get rid of it) For initialization, the program calls noecho() and crmode() (curses functions). How can I get ^Z to work properly? Send replies E-mail.