X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ffirework.c;h=bfeadd7c0dfe61d2bcd15c344eb8cdf78d74c05c;hp=198c58d7dbe43d4d89187f314a35afd560cbfd52;hb=f259fb41d8f08b7e042eb928b839b59c8e39098c;hpb=5d8dbcdd9423bf9821db414fd9ec792ccf1f1027 diff --git a/test/firework.c b/test/firework.c index 198c58d7..bfeadd7c 100644 --- a/test/firework.c +++ b/test/firework.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2014,2017 Free Software Foundation, Inc. * + * Copyright 2019,2020 Thomas E. Dickey * + * Copyright 1998-2014,2017 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 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: firework.c,v 1.34 2017/09/09 00:35:56 tom Exp $ + * $Id: firework.c,v 1.37 2020/02/02 23:34:34 tom Exp $ */ #include @@ -37,7 +38,7 @@ static short my_bg = COLOR_BLACK; static void cleanup(void) { - exit_curses(); + stop_curses(); } static void @@ -183,9 +184,7 @@ main(int argc, char *argv[]) if (optind < argc) usage(); - CATCHALL(onsig); - - initscr(); + InitAndCatch(initscr(), onsig); noecho(); cbreak(); keypad(stdscr, TRUE);