/*
- * $Id: firework.c,v 1.15 1999/10/16 21:33:39 tom Exp $
+ * $Id: firework.c,v 1.21 2005/05/28 21:39:04 tom Exp $
*/
#include <test.priv.h>
-#include <signal.h>
#include <time.h>
static int my_bg = COLOR_BLACK;
onsig(int n GCC_UNUSED)
{
cleanup();
- exit(EXIT_FAILURE);
+ ExitProgram(EXIT_FAILURE);
}
static void
#endif
if (ch == 'q') {
cleanup();
- exit(EXIT_SUCCESS);
+ ExitProgram(EXIT_SUCCESS);
} else if (ch == 's') {
nodelay(stdscr, FALSE);
} else if (ch == ' ') {
int
main(
- int argc GCC_UNUSED,
- char *argv[]GCC_UNUSED)
+ int argc GCC_UNUSED,
+ char *argv[]GCC_UNUSED)
{
int j;
int start, end, row, diff, flag = 0, direction;
if (has_colors()) {
start_color();
-#ifdef NCURSES_VERSION
+#if HAVE_USE_DEFAULT_COLORS
if (use_default_colors() == OK)
my_bg = -1;
#endif
attrset(A_NORMAL);
for (row = 0; row < diff; row++) {
mvprintw(LINES - row, start + (row * direction),
- (direction < 0) ? "\\" : "/");
+ (direction < 0) ? "\\" : "/");
if (flag++) {
showit();
erase();