X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fnewdemo.c;h=1e6942693ff8329f8b33b85d8faf61da220cbd48;hp=21a8f64f0bd17acda1e8a34e66855c9968665530;hb=3853a8e97d7efa8cb6a3c93c696d2c52895d6a70;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8;ds=inline diff --git a/test/newdemo.c b/test/newdemo.c index 21a8f64f..1e694269 100644 --- a/test/newdemo.c +++ b/test/newdemo.c @@ -2,15 +2,13 @@ * 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 #include -#define delay_output(x) napms(x) - /* * The Australian map */ @@ -225,12 +223,13 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) 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);