Back to index

tetex-bin  3.0
Functions
lib_slkatr_set.c File Reference
#include <curses.priv.h>

Go to the source code of this file.

Functions

 slk_attr_set (const attr_t attr, short color_pair_number, void *opts)

Function Documentation

slk_attr_set ( const attr_t  attr,
short  color_pair_number,
void opts 
)

Definition at line 44 of file lib_slkatr_set.c.

{
    T((T_CALLED("slk_attr_set(%s,%d)"), _traceattr(attr), color_pair_number));

    if (SP != 0 && SP->_slk != 0 && !opts &&
       color_pair_number >= 0 && color_pair_number < COLOR_PAIRS) {
       SP->_slk->attr = attr;
       toggle_attr_on(SP->_slk->attr, COLOR_PAIR(color_pair_number));
       returnCode(OK);
    } else
       returnCode(ERR);
}