Back to index

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

Go to the source code of this file.

Functions

 use_default_colors (void)
 assume_default_colors (int fg, int bg)

Function Documentation

assume_default_colors ( int  fg,
int  bg 
)

Definition at line 54 of file lib_dft_fgbg.c.

{
    T((T_CALLED("assume_default_colors(%d,%d)"), fg, bg));

    if (!orig_pair && !orig_colors)
       returnCode(ERR);

    if (initialize_pair)    /* don't know how to handle this */
       returnCode(ERR);

    SP->_default_color = (fg < 0 || fg == C_MASK) || (bg < 0 || bg == C_MASK);
    SP->_has_sgr_39_49 = (tigetflag("AX") == TRUE);
    SP->_default_fg = (fg >= 0) ? (fg & C_MASK) : C_MASK;
    SP->_default_bg = (bg >= 0) ? (bg & C_MASK) : C_MASK;
    if (SP->_color_pairs != 0)
       init_pair(0, fg, bg);
    returnCode(OK);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 43 of file lib_dft_fgbg.c.

{
    T((T_CALLED("use_default_colors()")));
    returnCode(assume_default_colors(C_MASK, C_MASK));
}

Here is the call graph for this function: