]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/firework.c
ncurses 6.1 - patch 20200111
[ncurses.git] / test / firework.c
index 198c58d7dbe43d4d89187f314a35afd560cbfd52..b7c560b41cc1101c16096f16d85fda2989da4b4d 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998-2014,2017 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2017,2019 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: firework.c,v 1.34 2017/09/09 00:35:56 tom Exp $
+ * $Id: firework.c,v 1.36 2019/12/14 23:26:09 tom Exp $
  */
 #include <test.priv.h>
 
@@ -37,7 +37,7 @@ static short my_bg = COLOR_BLACK;
 static void
 cleanup(void)
 {
-    exit_curses();
+    stop_curses();
 }
 
 static void
@@ -183,9 +183,7 @@ main(int argc, char *argv[])
     if (optind < argc)
        usage();
 
-    CATCHALL(onsig);
-
-    initscr();
+    InitAndCatch(initscr(), onsig);
     noecho();
     cbreak();
     keypad(stdscr, TRUE);