attr_t slk_attr(void) { T((T_CALLED("slk_attr()"))); if (SP!=0 && SP->_slk!=0) { returnAttr(SP->_slk->attr); } else returnAttr(0); }
slk_attr(void) { T((T_CALLED("slk_attr()"))); if (SP != 0 && SP->_slk != 0) { attr_t result = AttrOf(SP->_slk->attr) & ALL_BUT_COLOR; int pair = GetPair(SP->_slk->attr); result |= COLOR_PAIR(pair); returnAttr(result); } else returnAttr(0); }