Back to index

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

Go to the source code of this file.


#define set_color(mode, pair)   mode &= ~A_COLOR; mode |= COLOR_PAIR(pair)


 vid_puts (attr_t newmode, short pair, void *opts GCC_UNUSED, int(*outc)(int))
 vid_attr (attr_t newmode, short pair, void *opts GCC_UNUSED)
 term_attrs (void)

Define Documentation

#define set_color (   mode,
)    mode &= ~A_COLOR; mode |= COLOR_PAIR(pair)

Definition at line 38 of file lib_vid_attr.c.

Function Documentation

Definition at line 58 of file lib_vid_attr.c.

    attr_t attrs = WA_NORMAL;

    if (enter_alt_charset_mode)
       attrs |= WA_ALTCHARSET;

    if (enter_blink_mode)
       attrs |= WA_BLINK;

    if (enter_bold_mode)
       attrs |= WA_BOLD;

    if (enter_dim_mode)
       attrs |= WA_DIM;

    if (enter_reverse_mode)
       attrs |= WA_REVERSE;

    if (enter_standout_mode)
       attrs |= WA_STANDOUT;

    if (enter_protected_mode)
       attrs |= WA_PROTECT;

    if (enter_secure_mode)
       attrs |= WA_INVIS;

    if (enter_underline_mode)
       attrs |= WA_UNDERLINE;

    if (SP->_coloron)
       attrs |= A_COLOR;

vid_attr ( attr_t  newmode,
short  pair,
void *opts  GCC_UNUSED 

Definition at line 50 of file lib_vid_attr.c.

    T((T_CALLED("vid_attr(%s,%d)"), _traceattr(newmode), pair));
    set_color(newmode, pair);
    returnCode(vidputs(newmode, _nc_outch));

Here is the call graph for this function:

vid_puts ( attr_t  newmode,
short  pair,
void *opts  GCC_UNUSED,
int(*)(int outc 

Definition at line 41 of file lib_vid_attr.c.

    T((T_CALLED("vid_puts(%s,%d)"), _traceattr(newmode), pair));
    set_color(newmode, pair);
    returnCode(vidputs(newmode, outc));

Here is the call graph for this function: