* 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 <test.priv.h>
static void
trap(int sig GCC_UNUSED)
{
- exit_curses();
+ stop_curses();
ExitProgram(EXIT_FAILURE);
}
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);
}
if (WaitForUser(win) == 1)
break;
}
- exit_curses();
+ stop_curses();
ExitProgram(EXIT_SUCCESS);
}