5 static void finish(int sig
);
6 WINDOW
*scrwin
, *boxwin
;
7 int main(int argc
, char *argv
[])
15 scrwin
= newwin(10, 40, LINES
/ 2 - 6, COLS
/ 2 - 25);
16 boxwin
= newwin(12, 42, LINES
/ 2 - 7, COLS
/ 2 - 26);
18 box(boxwin
, '|', '-');
21 signal(SIGINT
, finish
);
22 signal(SIGQUIT
, finish
);
26 wprintw(scrwin
, "the string is %d\n", i
% 9);
31 static void finish(int sig
)