else {
#ifdef HAVE_NCURSES
if (Sets.standout) {
- if (haveColor) attrset(COLOR_PAIR(type & 15));
- else attrset(A_REVERSE);
+ attrset(haveColor ? COLOR_PAIR(type & 15) : A_REVERSE);
}
#endif
switch (Sets.drawstyle) {
if (type == BT_none) addch(' ');
else if (type == BT_shadow) addch(':');
else {
- if (Sets.standout) {
#ifdef HAVE_NCURSES
- if (haveColor)
- attrset(COLOR_PAIR(type & 15));
- else attrset(A_REVERSE);
-#endif
+ if (Sets.standout) {
+ attrset(haveColor ? COLOR_PAIR(type & 15) : A_REVERSE);
}
+#endif
if ((type & 192) == 64)
addch('[');
else if ((type & 192) == 128)