]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/firework.c
ncurses 6.1 - patch 20180623
[ncurses.git] / test / firework.c
index 198c58d7dbe43d4d89187f314a35afd560cbfd52..9fb236bf806d65014b5773e133875cadd8b13ec6 100644 (file)
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: firework.c,v 1.34 2017/09/09 00:35:56 tom Exp $
+ * $Id: firework.c,v 1.35 2017/09/30 15:42:24 tom Exp $
  */
 #include <test.priv.h>
 
@@ -183,9 +183,7 @@ main(int argc, char *argv[])
     if (optind < argc)
        usage();
 
-    CATCHALL(onsig);
-
-    initscr();
+    InitAndCatch(initscr(), onsig);
     noecho();
     cbreak();
     keypad(stdscr, TRUE);