* newdemo.c - A demo program using PDCurses. The program illustrate
* the use of colours for text output.
*
- * $Id: newdemo.c,v 1.43 2016/09/10 21:25:53 tom Exp $
+ * $Id: newdemo.c,v 1.44 2017/09/04 11:49:55 tom Exp $
*/
#include <test.priv.h>
static void
trap(int sig GCC_UNUSED)
{
- endwin();
+ exit_curses();
ExitProgram(EXIT_FAILURE);
}
height = 14; /* Create a drawing window */
win = newwin(height, width, (LINES - height) / 2, (COLS - width) / 2);
if (win == NULL) {
- endwin();
+ exit_curses();
ExitProgram(EXIT_FAILURE);
}
if (WaitForUser(win) == 1)
break;
}
- endwin();
+ exit_curses();
ExitProgram(EXIT_SUCCESS);
}