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 bgreen [COLOR_LEN]
char black [COLOR_LEN]
char blue [COLOR_LEN]
double blue_gamma
char bmagenta [COLOR_LEN]
char borange [COLOR_LEN]
char box_bg [COLOR_LEN]
char box_fg [COLOR_LEN]
char brackets_bg [COLOR_LEN]
char brackets_fg [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
char cmdln_bg [COLOR_LEN]
char cmdln_fg [COLOR_LEN]
int cp_bold
int cp_box
int cp_cmdln
int cp_default
int cp_highlight
int cp_ind
int cp_ln
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 [COLOR_LEN]
char fill_char_bg [COLOR_LEN]
char fill_char_fg [COLOR_LEN]
double gray_gamma
char green [COLOR_LEN]
double green_gamma
char ind_bg [COLOR_LEN]
char ind_fg [COLOR_LEN]
char ln_bg [COLOR_LEN]
char ln_fg [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
char title_bg [COLOR_LEN]
char title_fg [COLOR_LEN]
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 805 of file cm.h.

Field Documentation

◆ abg

char SIO::abg[COLOR_LEN]

color code for background with alpha

Definition at line 828 of file cm.h.

◆ bblack

char SIO::bblack[COLOR_LEN]

color code for bold black

Definition at line 819 of file cm.h.

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

◆ bblue

char SIO::bblue[COLOR_LEN]

color code for bold blue

Definition at line 823 of file cm.h.

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

◆ bcyan

char SIO::bcyan[COLOR_LEN]

color code for bold cyan

Definition at line 825 of file cm.h.

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

◆ bg

char SIO::bg[COLOR_LEN]

background color index

Definition at line 830 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ bgreen

char SIO::bgreen[COLOR_LEN]

color code for bold green

Definition at line 821 of file cm.h.

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

◆ black

char SIO::black[COLOR_LEN]

color code for black

Definition at line 810 of file cm.h.

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

◆ blue

char SIO::blue[COLOR_LEN]

color code for blue

Definition at line 814 of file cm.h.

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

◆ blue_gamma

double SIO::blue_gamma

blue gamma correction value

Definition at line 808 of file cm.h.

Referenced by initialize_local_colors(), process_config_file(), and write_config().

◆ bmagenta

char SIO::bmagenta[COLOR_LEN]

color code for bold magenta

Definition at line 824 of file cm.h.

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

◆ borange

char SIO::borange[COLOR_LEN]

color code for bold orange

Definition at line 827 of file cm.h.

Referenced by init_clr_palette(), and process_config_file().

◆ box_bg

char SIO::box_bg[COLOR_LEN]

box background

Definition at line 832 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ box_fg

char SIO::box_fg[COLOR_LEN]

box foreground

Definition at line 831 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ brackets_bg

char SIO::brackets_bg[COLOR_LEN]

brackets background

Definition at line 836 of file cm.h.

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

◆ brackets_fg

char SIO::brackets_fg[COLOR_LEN]

brackets foreground

Definition at line 835 of file cm.h.

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

◆ bred

char SIO::bred[COLOR_LEN]

color code for bold red

Definition at line 820 of file cm.h.

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

◆ bwhite

char SIO::bwhite[COLOR_LEN]

color code for bold white

Definition at line 826 of file cm.h.

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

◆ byellow

char SIO::byellow[COLOR_LEN]

color code for bold yellow

Definition at line 822 of file cm.h.

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

◆ clr_cnt

int SIO::clr_cnt

number of colors currently in use

Definition at line 864 of file cm.h.

◆ clr_idx

int SIO::clr_idx

current color index

Definition at line 866 of file cm.h.

◆ clr_pair_cnt

int SIO::clr_pair_cnt

number of color pairs currently in use

Definition at line 865 of file cm.h.

◆ clr_pair_idx

int SIO::clr_pair_idx

current color pair index

Definition at line 867 of file cm.h.

◆ cmdln_bg

char SIO::cmdln_bg[COLOR_LEN]

line number background index

Definition at line 842 of file cm.h.

Referenced by mapp_initialization(), and write_config().

◆ cmdln_fg

char SIO::cmdln_fg[COLOR_LEN]

line number color index

Definition at line 841 of file cm.h.

Referenced by mapp_initialization(), and write_config().

◆ cp_bold

int SIO::cp_bold

bold color pair index

Definition at line 876 of file cm.h.

◆ cp_box

int SIO::cp_box

box color pair index

Definition at line 874 of file cm.h.

◆ cp_cmdln

int SIO::cp_cmdln

line number color pair index

Definition at line 880 of file cm.h.

◆ cp_default

int SIO::cp_default

default color pair index

Definition at line 868 of file cm.h.

◆ cp_highlight

int SIO::cp_highlight

highlight color pair index

Definition at line 878 of file cm.h.

◆ cp_ind

int SIO::cp_ind

box color pair index

Definition at line 875 of file cm.h.

◆ cp_ln

int SIO::cp_ln

line number color pair index

Definition at line 879 of file cm.h.

◆ cp_norm

int SIO::cp_norm

normal color pair index

Definition at line 869 of file cm.h.

◆ cp_nt_hl

int SIO::cp_nt_hl

highlight color pair index

Definition at line 872 of file cm.h.

◆ cp_nt_hl_rev

int SIO::cp_nt_hl_rev

reverse highlight color pair index

Definition at line 873 of file cm.h.

◆ cp_nt_rev

int SIO::cp_nt_rev

reverse color pair index

Definition at line 871 of file cm.h.

◆ cp_title

int SIO::cp_title

title color pair index

Definition at line 877 of file cm.h.

◆ cp_win

int SIO::cp_win

window color pair index

Definition at line 870 of file cm.h.

◆ cyan

char SIO::cyan[COLOR_LEN]

color code for cyan

Definition at line 816 of file cm.h.

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

◆ fg

char SIO::fg[COLOR_LEN]

foreground color index

Definition at line 829 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ fill_char_bg

char SIO::fill_char_bg[COLOR_LEN]

fill character background

Definition at line 838 of file cm.h.

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

◆ fill_char_fg

char SIO::fill_char_fg[COLOR_LEN]

fill character foreground

Definition at line 837 of file cm.h.

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

◆ gray_gamma

double SIO::gray_gamma

gray gamma correction value

Definition at line 809 of file cm.h.

Referenced by initialize_local_colors(), process_config_file(), and write_config().

◆ green

char SIO::green[COLOR_LEN]

color code for green

Definition at line 812 of file cm.h.

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

◆ green_gamma

double SIO::green_gamma

green gamma correction value

Definition at line 807 of file cm.h.

Referenced by initialize_local_colors(), process_config_file(), and write_config().

◆ ind_bg

char SIO::ind_bg[COLOR_LEN]

indicator background

Definition at line 834 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ ind_fg

char SIO::ind_fg[COLOR_LEN]

indicator foreground

Definition at line 833 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ ln_bg

char SIO::ln_bg[COLOR_LEN]

line number background index

Definition at line 840 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ ln_fg

char SIO::ln_fg[COLOR_LEN]

line number color index

Definition at line 839 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ magenta

char SIO::magenta[COLOR_LEN]

color code for magenta

Definition at line 815 of file cm.h.

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

◆ nt_bg

char SIO::nt_bg[COLOR_LEN]

color code for normal text background

Definition at line 844 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ nt_fg

char SIO::nt_fg[COLOR_LEN]

color code for normal text foreground

Definition at line 843 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ nt_hl_bg

char SIO::nt_hl_bg[COLOR_LEN]

normal text highlight background

Definition at line 848 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ nt_hl_fg

char SIO::nt_hl_fg[COLOR_LEN]

normal text highlight foreground

Definition at line 847 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ nt_hl_rev_bg

char SIO::nt_hl_rev_bg[COLOR_LEN]

normal text highlight reverse background

Definition at line 852 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ nt_hl_rev_fg

char SIO::nt_hl_rev_fg[COLOR_LEN]

normal text highlight reverse foreground

Definition at line 850 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ nt_rev_bg

char SIO::nt_rev_bg[COLOR_LEN]

normal text reverse background

Definition at line 846 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ nt_rev_fg

char SIO::nt_rev_fg[COLOR_LEN]

normal text reverse foreground

Definition at line 845 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ orange

char SIO::orange[COLOR_LEN]

color code for orange

Definition at line 818 of file cm.h.

Referenced by process_config_file().

◆ red

char SIO::red[COLOR_LEN]

color code for red

Definition at line 811 of file cm.h.

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

◆ red_gamma

double SIO::red_gamma

red gamma correction value

Definition at line 806 of file cm.h.

Referenced by initialize_local_colors(), process_config_file(), and write_config().

◆ stderr_fd

int SIO::stderr_fd

stderr file descriptor

Definition at line 862 of file cm.h.

Referenced by open_curses().

◆ stderr_fp

FILE* SIO::stderr_fp

stderr stream pointer

Definition at line 858 of file cm.h.

◆ stdin_fd

int SIO::stdin_fd

stdin file descriptor

Definition at line 860 of file cm.h.

Referenced by open_curses(), and view_init_input().

◆ stdin_fp

FILE* SIO::stdin_fp

stdin stream pointer

Definition at line 856 of file cm.h.

◆ stdout_fd

int SIO::stdout_fd

stdout file descriptor

Definition at line 861 of file cm.h.

Referenced by open_curses().

◆ stdout_fp

FILE* SIO::stdout_fp

stdout stream pointer

Definition at line 857 of file cm.h.

◆ title_bg

char SIO::title_bg[COLOR_LEN]

title background

Definition at line 854 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ title_fg

char SIO::title_fg[COLOR_LEN]

title foreground

Definition at line 853 of file cm.h.

Referenced by init_clr_palette(), mapp_initialization(), process_config_file(), and write_config().

◆ tty_fd

int SIO::tty_fd

terminal device file descriptor

Definition at line 863 of file cm.h.

◆ tty_fp

FILE* SIO::tty_fp

terminal device stream pointer

Definition at line 859 of file cm.h.

◆ tty_name

char SIO::tty_name[MAXLEN]

name of the terminal device

Definition at line 855 of file cm.h.

Referenced by open_curses().

◆ white

char SIO::white[COLOR_LEN]

color code for white

Definition at line 817 of file cm.h.

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

◆ yellow

char SIO::yellow[COLOR_LEN]

color code for yellow

Definition at line 813 of file cm.h.

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


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