Back to index

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

Go to the source code of this file.

Functions

 slk_color (short color_pair_number)

Function Documentation

slk_color ( short  color_pair_number)

Definition at line 41 of file lib_slkcolor.c.

{
    T((T_CALLED("slk_color(%d)"), color_pair_number));

    if (SP != 0 && SP->_slk != 0 &&
       color_pair_number >= 0 && color_pair_number < COLOR_PAIRS) {
       T(("... current %ld", (long) PAIR_NUMBER(SP->_slk->attr)));
       toggle_attr_on(SP->_slk->attr, COLOR_PAIR(color_pair_number));
       returnCode(OK);
    } else
       returnCode(ERR);
}