C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
SIO Struct Reference

The SIO structure encapsulates various aspects of the terminal's state and configuration, including color management, file pointers, and terminal device information. More...

#include <cm.h>

Collaboration diagram for SIO:
[legend]

Data Fields

char abg [COLOR_LEN]
char bblack [COLOR_LEN]
char bblue [COLOR_LEN]
char bcyan [COLOR_LEN]
char bg [COLOR_LEN]
char bg_clr_x [COLOR_LEN]
char bgreen [COLOR_LEN]
char black [COLOR_LEN]
char blue [COLOR_LEN]
double blue_gamma
char bmagenta [COLOR_LEN]
char bo_clr_x [COLOR_LEN]
char borange [COLOR_LEN]
char bred [COLOR_LEN]
char bwhite [COLOR_LEN]
char byellow [COLOR_LEN]
int clr_cnt
int clr_idx
int clr_pair_cnt
int clr_pair_idx
int cp_bold
int cp_box
int cp_default
int cp_highlight
int cp_ln
int cp_ln_bg
int cp_norm
int cp_nt_hl
int cp_nt_hl_rev
int cp_nt_rev
int cp_title
int cp_win
char cyan [COLOR_LEN]
char fg_clr_x [COLOR_LEN]
double gray_gamma
char green [COLOR_LEN]
double green_gamma
char ln_bg_clr_x [COLOR_LEN]
char ln_clr_x [COLOR_LEN]
char magenta [COLOR_LEN]
char nt_bg [COLOR_LEN]
char nt_fg [COLOR_LEN]
char nt_hl_bg [COLOR_LEN]
char nt_hl_fg [COLOR_LEN]
char nt_hl_rev_bg [COLOR_LEN]
char nt_hl_rev_fg [COLOR_LEN]
char nt_rev_bg [COLOR_LEN]
char nt_rev_fg [COLOR_LEN]
char orange [COLOR_LEN]
char red [COLOR_LEN]
double red_gamma
int stderr_fd
FILE * stderr_fp
int stdin_fd
FILE * stdin_fp
int stdout_fd
FILE * stdout_fp
int tty_fd
FILE * tty_fp
char tty_name [MAXLEN]
char white [COLOR_LEN]
char yellow [COLOR_LEN]

Detailed Description

The SIO structure encapsulates various aspects of the terminal's state and configuration, including color management, file pointers, and terminal device information.

The SIO structure serves as a central repository for all relevant information needed to manage the terminal's appearance and behavior effectively, allowing for a highly customizable and visually appealing terminal experience. The SIO structure includes fields for managing colors, gamma correction values, color codes for different colors, file pointers and descriptors for standard input/output/error and the terminal device, as well as counters and indices for color management. Additionally, it contains a field for storing the name of the terminal device. This comprehensive structure allows for efficient management of the terminal's state and configuration in a structured way.

Definition at line 696 of file cm.h.

Field Documentation

◆ abg

char SIO::abg[COLOR_LEN]

color code for background with alpha

Definition at line 720 of file cm.h.

◆ bblack

char SIO::bblack[COLOR_LEN]

color code for bold black

Definition at line 710 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ bblue

char SIO::bblue[COLOR_LEN]

color code for bold blue

Definition at line 714 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ bcyan

char SIO::bcyan[COLOR_LEN]

color code for bold cyan

Definition at line 716 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ bg

char SIO::bg[COLOR_LEN]

color code for background

Definition at line 719 of file cm.h.

Referenced by parse_config().

◆ bg_clr_x

char SIO::bg_clr_x[COLOR_LEN]

background color index

Definition at line 722 of file cm.h.

Referenced by dump_config(), init_clr_palette(), mapp_initialization(), parse_config(), and write_config().

◆ bgreen

char SIO::bgreen[COLOR_LEN]

color code for bold green

Definition at line 712 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ black

char SIO::black[COLOR_LEN]

color code for black

Definition at line 701 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ blue

char SIO::blue[COLOR_LEN]

color code for blue

Definition at line 705 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ blue_gamma

double SIO::blue_gamma

blue gamma correction value

Definition at line 699 of file cm.h.

Referenced by dump_config(), open_curses(), parse_config(), and write_config().

◆ bmagenta

char SIO::bmagenta[COLOR_LEN]

color code for bold magenta

Definition at line 715 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ bo_clr_x

char SIO::bo_clr_x[COLOR_LEN]

bold color index

Definition at line 723 of file cm.h.

Referenced by dump_config(), init_clr_palette(), mapp_initialization(), parse_config(), and write_config().

◆ borange

char SIO::borange[COLOR_LEN]

color code for bold orange

Definition at line 718 of file cm.h.

Referenced by dump_config(), init_clr_palette(), and parse_config().

◆ bred

char SIO::bred[COLOR_LEN]

color code for bold red

Definition at line 711 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ bwhite

char SIO::bwhite[COLOR_LEN]

color code for bold white

Definition at line 717 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ byellow

char SIO::byellow[COLOR_LEN]

color code for bold yellow

Definition at line 713 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ clr_cnt

int SIO::clr_cnt

number of colors currently in use

Definition at line 745 of file cm.h.

◆ clr_idx

int SIO::clr_idx

current color index

Definition at line 747 of file cm.h.

◆ clr_pair_cnt

int SIO::clr_pair_cnt

number of color pairs currently in use

Definition at line 746 of file cm.h.

◆ clr_pair_idx

int SIO::clr_pair_idx

current color pair index

Definition at line 748 of file cm.h.

◆ cp_bold

int SIO::cp_bold

bold color pair index

Definition at line 756 of file cm.h.

◆ cp_box

int SIO::cp_box

box color pair index

Definition at line 755 of file cm.h.

◆ cp_default

int SIO::cp_default

default color pair index

Definition at line 749 of file cm.h.

◆ cp_highlight

int SIO::cp_highlight

highlight color pair index

Definition at line 758 of file cm.h.

◆ cp_ln

int SIO::cp_ln

line number color pair index

Definition at line 759 of file cm.h.

◆ cp_ln_bg

int SIO::cp_ln_bg

line number background pair index

Definition at line 760 of file cm.h.

◆ cp_norm

int SIO::cp_norm

normal color pair index

Definition at line 750 of file cm.h.

◆ cp_nt_hl

int SIO::cp_nt_hl

highlight color pair index

Definition at line 753 of file cm.h.

◆ cp_nt_hl_rev

int SIO::cp_nt_hl_rev

reverse highlight color pair index

Definition at line 754 of file cm.h.

◆ cp_nt_rev

int SIO::cp_nt_rev

reverse color pair index

Definition at line 752 of file cm.h.

◆ cp_title

int SIO::cp_title

title color pair index

Definition at line 757 of file cm.h.

◆ cp_win

int SIO::cp_win

window color pair index

Definition at line 751 of file cm.h.

◆ cyan

char SIO::cyan[COLOR_LEN]

color code for cyan

Definition at line 707 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ fg_clr_x

char SIO::fg_clr_x[COLOR_LEN]

foreground color index

Definition at line 721 of file cm.h.

Referenced by dump_config(), init_clr_palette(), mapp_initialization(), parse_config(), and write_config().

◆ gray_gamma

double SIO::gray_gamma

gray gamma correction value

Definition at line 700 of file cm.h.

Referenced by dump_config(), open_curses(), parse_config(), and write_config().

◆ green

char SIO::green[COLOR_LEN]

color code for green

Definition at line 703 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ green_gamma

double SIO::green_gamma

green gamma correction value

Definition at line 698 of file cm.h.

Referenced by dump_config(), open_curses(), parse_config(), and write_config().

◆ ln_bg_clr_x

char SIO::ln_bg_clr_x[COLOR_LEN]

line number background index

Definition at line 725 of file cm.h.

Referenced by dump_config(), init_clr_palette(), mapp_initialization(), parse_config(), and write_config().

◆ ln_clr_x

char SIO::ln_clr_x[COLOR_LEN]

line number color index

Definition at line 724 of file cm.h.

Referenced by dump_config(), init_clr_palette(), mapp_initialization(), parse_config(), and write_config().

◆ magenta

char SIO::magenta[COLOR_LEN]

color code for magenta

Definition at line 706 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ nt_bg

char SIO::nt_bg[COLOR_LEN]

color code for normal text background

Definition at line 727 of file cm.h.

Referenced by init_clr_palette(), parse_config(), and write_config().

◆ nt_fg

char SIO::nt_fg[COLOR_LEN]

color code for normal text foreground

Definition at line 726 of file cm.h.

Referenced by init_clr_palette(), parse_config(), and write_config().

◆ nt_hl_bg

char SIO::nt_hl_bg[COLOR_LEN]

normal text highlight background

Definition at line 731 of file cm.h.

Referenced by init_clr_palette(), parse_config(), and write_config().

◆ nt_hl_fg

char SIO::nt_hl_fg[COLOR_LEN]

normal text highlight foreground

Definition at line 730 of file cm.h.

Referenced by init_clr_palette(), parse_config(), and write_config().

◆ nt_hl_rev_bg

char SIO::nt_hl_rev_bg[COLOR_LEN]

normal text highlight reverse foreground

Definition at line 735 of file cm.h.

Referenced by init_clr_palette(), parse_config(), and write_config().

◆ nt_hl_rev_fg

char SIO::nt_hl_rev_fg[COLOR_LEN]

Definition at line 733 of file cm.h.

Referenced by init_clr_palette(), parse_config(), and write_config().

◆ nt_rev_bg

char SIO::nt_rev_bg[COLOR_LEN]

normal text reverse background

Definition at line 729 of file cm.h.

Referenced by init_clr_palette(), parse_config(), and write_config().

◆ nt_rev_fg

char SIO::nt_rev_fg[COLOR_LEN]

normal text reverse foreground

Definition at line 728 of file cm.h.

Referenced by init_clr_palette(), parse_config(), and write_config().

◆ orange

char SIO::orange[COLOR_LEN]

color code for orange

Definition at line 709 of file cm.h.

Referenced by dump_config(), and parse_config().

◆ red

char SIO::red[COLOR_LEN]

color code for red

Definition at line 702 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ red_gamma

double SIO::red_gamma

red gamma correction value

Definition at line 697 of file cm.h.

Referenced by dump_config(), open_curses(), parse_config(), and write_config().

◆ stderr_fd

int SIO::stderr_fd

stderr file descriptor

Definition at line 743 of file cm.h.

◆ stderr_fp

FILE* SIO::stderr_fp

stderr stream pointer

Definition at line 739 of file cm.h.

◆ stdin_fd

int SIO::stdin_fd

stdin file descriptor

Definition at line 741 of file cm.h.

Referenced by init_pick().

◆ stdin_fp

FILE* SIO::stdin_fp

stdin stream pointer

Definition at line 737 of file cm.h.

◆ stdout_fd

int SIO::stdout_fd

stdout file descriptor

Definition at line 742 of file cm.h.

Referenced by init_pick().

◆ stdout_fp

FILE* SIO::stdout_fp

stdout stream pointer

Definition at line 738 of file cm.h.

◆ tty_fd

int SIO::tty_fd

terminal device file descriptor

Definition at line 744 of file cm.h.

◆ tty_fp

FILE* SIO::tty_fp

terminal device stream pointer

Definition at line 740 of file cm.h.

◆ tty_name

char SIO::tty_name[MAXLEN]

normal text highlight reverse background name of the terminal device

Definition at line 736 of file cm.h.

Referenced by open_curses().

◆ white

char SIO::white[COLOR_LEN]

color code for white

Definition at line 708 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().

◆ yellow

char SIO::yellow[COLOR_LEN]

color code for yellow

Definition at line 704 of file cm.h.

Referenced by dump_config(), init_clr_palette(), parse_config(), and write_config().


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