Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!marque!studsys!jetzer From: jetzer@studsys.mu.edu (Mike Jetzer) Newsgroups: comp.lang.c Subject: Re: Curses question Message-ID: <775@studsys.mu.edu> Date: 27 Aug 90 23:53:47 GMT References: <556@edpmgt.UUCP> Reply-To: jetzer@studsys.UUCP (Mike Jetzer) Organization: Marquette University - Milwaukee, Wisconsin Lines: 35 In article <556@edpmgt.UUCP> gpitcher@edpmgt.UUCP (Glenn Pitcher) writes: % Question... I supposed to write a series of programs which will call each % other via the 'system' library call. By problem is that all of these % programs use the curses library. The code fragments below are samples of % what I've come up with and they seem to work OK yet when control is passed % back to program 'A', I can't get the screen to update correctly (even though % the data is there). % Code fragments are as follows: [ fragmented even more] % program 'A' % initscr(); % system(...program 'B'...); % endwin(); % program 'B' % initscr(); % ...do various things... % endwin(); My curses manpage says "Programs desiring shell escapes or suspending with control Z can call resetterm before the shell is called and fixterm after returning from the shell." I assume the same would apply for system() (which is, essentially, calling a shell). I found out from another curses question in comp.unix.questions that curses for System V is different from curses for BSD so your mileage may vary (although I'm on a SysV machine, whose manpage refers to "ctrl-Z", a BSD-ism). -- Mike Jetzer "And we'll have fun, fun, fun until Daddy takes the keyboard awa-ay..."