* newdemo.c - A demo program using PDCurses. The program illustrate
* the use of colours for text output.
*
- * $Id: newdemo.c,v 1.34 2010/11/13 23:33:42 tom Exp $
+ * $Id: newdemo.c,v 1.36 2012/06/09 19:17:29 tom Exp $
*/
#include <test.priv.h>
*/
#define NMESSAGES 6
-static NCURSES_CONST char *messages[] =
+static const char *messages[] =
{
"Hello from the Land Down Under",
"The Land of crocs. and a big Red Rock",
if (pair > COLOR_PAIRS)
pair = COLOR_PAIRS;
init_pair((short) pair, (short) foreground, (short) background);
- (void) wattrset(win, (attr_t) COLOR_PAIR(pair));
+ (void) wattrset(win, (int) COLOR_PAIR(pair));
}
}
pair = COLOR_PAIRS;
attrs |= (chtype) COLOR_PAIR(pair);
}
- (void) wattrset(win, attrs);
+ (void) wattrset(win, (int) attrs);
return attrs;
}