cwidget  0.5.17
Namespaces | Functions
colors.h File Reference

Routines to support independently changing foreground and background colors. More...

Go to the source code of this file.

Namespaces

 cwidget
 The namespace containing everything defined by cwidget.
 
 cwidget::config
 Routines that support parsing and interpreting user configuration.
 

Functions

void cwidget::config::init_colors ()
 Set up the colors as we expect them to be. More...
 
int cwidget::config::get_color_pair (short fg, short bg)
 
int cwidget::config::mix_color (short color, short fg, short bg)
 

Detailed Description

Routines to support independently changing foreground and background colors.

cwidget can only support colors on terminals that allow at least 64 color pairs to be defined. However, on those terminals, it can mix foreground and background colors independently of one another. Normally colors are accessed through the style system (see style.h).