X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fnewdemo.c;h=d76523ab6ffda5c7930f8f224fdc21fdbd820d4d;hp=04c52751c570814d90b4f96e635e66022c9e971c;hb=a6ff7e087fd944fd0035075d0bb528e95e498d81;hpb=efa78d11c3ea7f51c7078b64a34c98b44ecb0e1a;ds=sidebyside diff --git a/test/newdemo.c b/test/newdemo.c index 04c52751..d76523ab 100644 --- a/test/newdemo.c +++ b/test/newdemo.c @@ -2,7 +2,7 @@ * newdemo.c - A demo program using PDCurses. The program illustrate * the use of colours for text output. * - * $Id: newdemo.c,v 1.46 2019/08/24 23:02:49 tom Exp $ + * $Id: newdemo.c,v 1.47 2019/12/14 23:25:29 tom Exp $ */ #include @@ -50,7 +50,7 @@ static const char *messages[] = static void trap(int sig GCC_UNUSED) { - exit_curses(); + stop_curses(); ExitProgram(EXIT_FAILURE); } @@ -238,7 +238,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) height = 14; /* Create a drawing window */ win = newwin(height, width, (LINES - height) / 2, (COLS - width) / 2); if (win == NULL) { - exit_curses(); + stop_curses(); ExitProgram(EXIT_FAILURE); } @@ -362,6 +362,6 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) if (WaitForUser(win) == 1) break; } - exit_curses(); + stop_curses(); ExitProgram(EXIT_SUCCESS); }