__COLOR
attributes = (win->wattr | attr) & (__ATTRIBUTES & ~__COLOR);
if (attr & __COLOR)
attributes |= attr & __COLOR;
else if (win->wattr & __COLOR)
attributes |= win->wattr & __COLOR;
if (attributes & __COLOR)
attributes | (win->battr & ~__COLOR);
& (WA_ATTRIBUTES & ~__COLOR);
if (wch->attributes & __COLOR)
attributes |= wch->attributes & __COLOR;
else if (win->wattr & __COLOR)
attributes |= win->wattr & __COLOR;
if (attributes & __COLOR)
lp->attr = attributes | (win->battr & ~__COLOR);
attr = (attr & ~__COLOR) | COLOR_PAIR(pair);
if (attr & __COLOR)
if (attr & __COLOR) {
win->wattr &= ~__COLOR;
win->wattr &= ~__COLOR;
win->wattr |= attr & __COLOR;
if (__using_color && ((battr & __COLOR) == __default_color))
battr &= ~__COLOR;
if (__using_color && !( battr & __COLOR))
if (__using_color && ((wch->attributes & __COLOR) == __default_color))
wch->attributes &= ~__COLOR;
if (__using_color && !(ch & __COLOR))
left |= (left & __COLOR) ? (win->wattr & ~__COLOR) : win->wattr;
left |= (left & __COLOR) ? (win->battr & ~__COLOR) : win->battr;
right |= (right & __COLOR) ? (win->wattr & ~__COLOR) : win->wattr;
right |= (right & __COLOR) ? (win->battr & ~__COLOR) : win->battr;
top |= (top & __COLOR) ? (win->wattr & ~__COLOR) : win->wattr;
top |= (top & __COLOR) ? (win->battr & ~__COLOR) : win->battr;
bottom |= (bottom & __COLOR) ? (win->wattr & ~__COLOR) : win->wattr;
bottom |= (bottom & __COLOR) ? (win->battr & ~__COLOR) : win->battr;
topleft |= (topleft & __COLOR) ? (win->wattr & ~__COLOR) : win->wattr;
topleft |= (topleft & __COLOR) ? (win->battr & ~__COLOR) : win->battr;
topright |= (topright & __COLOR) ? (win->wattr & ~__COLOR) : win->wattr;
topright |= (topright & __COLOR) ? (win->battr & ~__COLOR) : win->battr;
botleft |= (botleft & __COLOR) ? (win->wattr & ~__COLOR) : win->wattr;
botleft |= (botleft & __COLOR) ? (win->battr & ~__COLOR) : win->battr;
botright |= (botright & __COLOR) ? (win->wattr & ~__COLOR) : win->wattr;
botright |= (botright & __COLOR) ? (win->battr & ~__COLOR) : win->battr;
left.attributes |= (left.attributes & __COLOR) ?
(win->wattr & ~__COLOR) : win->wattr;
left.attributes |= (left.attributes & __COLOR) ?
(win->battr & ~__COLOR) : win->battr;
right.attributes |= (right.attributes & __COLOR) ?
(win->wattr & ~__COLOR) : win->wattr;
right.attributes |= (right.attributes & __COLOR) ?
(win->battr & ~__COLOR) : win->battr;
top.attributes |= (top.attributes & __COLOR) ?
(win->wattr & ~__COLOR) : win->wattr;
top.attributes |= (top.attributes & __COLOR) ?
(win->battr & ~__COLOR) : win->battr;
bottom.attributes |= (bottom.attributes & __COLOR) ?
(win->wattr & ~__COLOR) : win->wattr;
bottom.attributes |= (bottom.attributes & __COLOR) ?
(win->battr & ~__COLOR) : win->battr;
topleft.attributes |= (topleft.attributes & __COLOR) ?
(win->wattr & ~__COLOR) : win->wattr;
topleft.attributes |= (topleft.attributes & __COLOR) ?
(win->battr & ~__COLOR) : win->battr;
topright.attributes |= (topright.attributes & __COLOR) ?
(win->wattr & ~__COLOR) : win->wattr;
topright.attributes |= (topright.attributes & __COLOR) ?
(win->battr & ~__COLOR) : win->battr;
botleft.attributes |= (botleft.attributes & __COLOR) ?
(win->wattr & ~__COLOR) : win->wattr;
botleft.attributes |= (botleft.attributes & __COLOR) ?
(win->battr & ~__COLOR) : win->battr;
botright.attributes |= (botright.attributes & __COLOR) ?
(win->wattr & ~__COLOR) : win->wattr;
botright.attributes |= (botright.attributes & __COLOR) ?
(win->battr & ~__COLOR) : win->battr;
wcval->attributes = attrs & ~__COLOR;
attr = (attr & ~__COLOR) | COLOR_PAIR(color);
"color pair %d\n", x, y, count, (attr & ~__COLOR),
win->alines[y]->line[x].attr &= ~__COLOR;
((curscr->wattr & __COLOR) == (attr & __COLOR)))
curscr->wattr &= ~__COLOR;
curscr->wattr |= attr & __COLOR;
if ((lp->line[x].attr & __COLOR) == cl)
lp->line[x].attr &= ~__COLOR;
__COLOR) == cl) {
#define A_COLOR __COLOR
#define MAX_PAIRS PAIR_NUMBER(__COLOR)
temp1->attr = win->battr & __COLOR;
if (__using_color && ((attr & __COLOR) == __default_color))
attr &= ~__COLOR;
attr = win->battr & __COLOR;
if (temp1->attr & __COLOR)
temp1->attr |= (win->battr & ~__COLOR);
attr = win->battr & __COLOR;
__set_color(curscr, nsp->attr & __COLOR);
curscr->wattr & __COLOR);
__virtscr->maxy - 1)]->line[0].attr & __COLOR;
if ((__virtscr->alines[i]->line[0].attr & __COLOR) != bcolor) {
attr & __COLOR;
if (curscr->wattr & __COLOR)
__set_color(curscr, nsp->attr & __COLOR);
screen->mask_op = __ATTRIBUTES & ~__COLOR;
screen->mask_op = WA_ATTRIBUTES & ~__COLOR;
~(__STANDOUT | __TERMATTR | __COLOR);
screen->mask_ue &= ~__COLOR;
~(__UNDERSCORE | __TERMATTR | __COLOR);
screen->mask_se &= ~__COLOR;