Teaching an old dog new tricks
No Matches
CursesColor Struct Reference

Colour in the ncurses palette. More...

#include "curses2.h"

Public Member Functions

 TAILQ_ENTRY (CursesColor) entries
 Linked list.

Data Fields

uint32_t fg
 Foreground colour.
uint32_t bg
 Background colour.
short index
 Index number.
short ref_count
 Number of users.

Detailed Description

Colour in the ncurses palette.

Curses stores colours as a foreground/background pair. There can be up to COLOR_PAIRS (65535) of these pairs. To use a colour, it must be initialised using init_pair().

Definition at line 37 of file curses2.h.

Member Function Documentation


CursesColor::TAILQ_ENTRY ( CursesColor  )

Linked list.

Field Documentation

◆ fg

uint32_t CursesColor::fg

Foreground colour.

Definition at line 41 of file curses2.h.

◆ bg

uint32_t CursesColor::bg

Background colour.

Definition at line 42 of file curses2.h.

◆ index

short CursesColor::index

Index number.

Definition at line 43 of file curses2.h.

◆ ref_count

short CursesColor::ref_count

Number of users.

Definition at line 44 of file curses2.h.

The documentation for this struct was generated from the following file: