Expand description

Normal color’s, color pairs and attributes module

Structs

Termianl Attributes.

A pair of Attributes and ColorPair.

A terminal color.

A color pair comprising of a foreground and background color.

Foreground and background colors.

The (R)ed, (G)reen and (B)lue content of a color.

Enums

Terminal Attribute.

The color palette.

Functions

Accepts a parameter for foreground and background color, and checks if that color combination is already associated with a color pair, returning an existing color pair or a new color pair.

Screen function of alloc_pair().

Returns a color pair if the given color combination has been associated with a color pair, or None if not.

Screen function of find_pair().