/****************************************************************************
- * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2011,2012 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 *
* scroll operation worked, and the refresh() code only had to do a
* partial repaint.
*
- * $Id: view.c,v 1.83 2011/05/21 18:40:49 tom Exp $
+ * $Id: view.c,v 1.85 2012/06/09 20:29:33 tom Exp $
*/
#include <test.priv.h>
#if CAN_RESIZE
static RETSIGTYPE adjust(int sig);
static int interrupted;
+static bool waiting = FALSE;
#endif
-static bool waiting = FALSE;
static int shift = 0;
static bool try_color = FALSE;
if (has_colors()) {
start_color();
init_pair(my_pair, COLOR_WHITE, COLOR_BLUE);
- bkgd(COLOR_PAIR(my_pair));
+ bkgd((chtype) COLOR_PAIR(my_pair));
} else {
try_color = FALSE;
}
adjust(0);
my_label = "interrupt";
}
-#endif
waiting = TRUE;
c = getch();
waiting = FALSE;
+#else
+ c = getch();
+#endif
if ((c < 127) && isdigit(c)) {
if (!got_number) {
MvPrintw(0, 0, "Count: ");