Curses question
Mike Jetzer
jetzer at studsys.mu.edu
Tue Aug 28 09:53:47 AEST 1990
In article <556 at edpmgt.UUCP> gpitcher at 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..."
More information about the Comp.lang.c
mailing list