* newdemo.c - A demo program using PDCurses. The program illustrate
* the use of colours for text output.
*
- * $Id: newdemo.c,v 1.27 2005/05/28 21:40:00 tom Exp $
+ * $Id: newdemo.c,v 1.29 2006/12/03 00:15:28 tom Exp $
*/
#include <test.priv.h>
#include <time.h>
-#define delay_output(x) napms(x)
-
/*
* The Australian map
*/
setlocale(LC_ALL, "");
+ CATCHALL(trap);
+
initscr();
if (has_colors())
start_color();
cbreak();
curs_set(0);
- signal(SIGINT, trap);
width = 48;
height = 14; /* Create a drawing window */
win = newwin(height, width, (LINES - height) / 2, (COLS - width) / 2);