*****************************************************************************/
/*
- * $Id: blue.c,v 1.44 2016/04/16 23:20:09 tom Exp $
+ * $Id: blue.c,v 1.46 2016/09/05 00:24:27 tom Exp $
*/
#include <test.priv.h>
addch(ranks[isuit][0] | (chtype) COLOR_PAIR(BLUE_ON_WHITE));
addch(ranks[isuit][1] | (chtype) COLOR_PAIR(BLUE_ON_WHITE));
- attr_on(color, NULL);
+ attron(color);
#if USE_WIDEC_SUPPORT
{
wchar_t values[2];
#else
addch((chtype) suits[which]);
#endif
- attr_off(color, NULL);
+ attroff(color);
}
(void) addch(' ');
}
} else {
char buf[BUFSIZ];
- (void) sprintf(buf,
- "Type [%s] to move, r to redraw, q or INTR to quit: ",
- live);
+ _nc_SPRINTF(buf, _nc_SLIMIT(sizeof(buf))
+ "Type [%s] to move, r to redraw, q or INTR to quit: ",
+ live);
do {
move(PROMPTROW, 0);