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

uint32_t abg
uint32_t bblack
uint32_t bblue
uint32_t bcyan
uint32_t bg
uint32_t bgreen
uint32_t black
uint32_t blue
double blue_gamma
uint32_t bmagenta
uint32_t borange
char border
uint32_t box_bg
uint32_t box_fg
char brackets [3]
uint32_t brackets_bg
uint32_t brackets_fg
uint32_t bred
uint32_t bwhite
uint32_t byellow
uint clr_cnt
uint clr_idx
uint clr_pair_cnt
uint clr_pair_idx
uint32_t cmdln_bg
uint32_t cmdln_fg
ushort cp_bold
ushort cp_box
ushort cp_brackets
ushort cp_chk
ushort cp_cmdln
ushort cp_default
ushort cp_fill_char
ushort cp_ind
ushort cp_ln
ushort cp_nt
ushort cp_nt_hl
ushort cp_nt_hl_rev
ushort cp_nt_rev
ushort cp_ran
ushort cp_title
uint32_t cyan
uint32_t fg
char fill_char [2]
uint32_t fill_char_bg
uint32_t fill_char_fg
double gray_gamma
uint32_t green
double green_gamma
uint32_t ind_bg
uint32_t ind_fg
uint32_t ln_bg
uint32_t ln_fg
uint32_t magenta
uint32_t nt_bg
uint32_t nt_fg
uint32_t nt_hl_bg
uint32_t nt_hl_fg
uint32_t nt_hl_rev_bg
uint32_t nt_hl_rev_fg
uint32_t nt_rev_bg
uint32_t nt_rev_fg
uint32_t orange
uint32_t ran_bg
uint32_t ran_fg
uint32_t red
double red_gamma
int stderr_fd
FILE * stderr_fp
int stdin_fd
FILE * stdin_fp
int stdout_fd
FILE * stdout_fp
uint32_t title_bg
uint32_t title_fg
int tty_fd
FILE * tty_fp
char tty_name [MAXLEN]
uint32_t white
uint32_t yellow

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 688 of file cm.h.

Field Documentation

◆ abg

uint32_t SIO::abg

background with alpha

Definition at line 711 of file cm.h.

◆ bblack

uint32_t SIO::bblack

bold black

Definition at line 702 of file cm.h.

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

◆ bblue

uint32_t SIO::bblue

bold blue

Definition at line 706 of file cm.h.

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

◆ bcyan

uint32_t SIO::bcyan

bold cyan

Definition at line 708 of file cm.h.

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

◆ bg

uint32_t SIO::bg

background color

Definition at line 713 of file cm.h.

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

◆ bgreen

uint32_t SIO::bgreen

bold green

Definition at line 704 of file cm.h.

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

◆ black

uint32_t SIO::black

black

Definition at line 693 of file cm.h.

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

◆ blue

uint32_t SIO::blue

blue

Definition at line 697 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 691 of file cm.h.

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

◆ bmagenta

uint32_t SIO::bmagenta

bold magenta

Definition at line 707 of file cm.h.

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

◆ borange

uint32_t SIO::borange

bold orange

Definition at line 710 of file cm.h.

Referenced by init_clr_palette(), and process_config_file().

◆ border

char SIO::border

Rounded, Single, Double, None

Definition at line 752 of file cm.h.

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

◆ box_bg

uint32_t SIO::box_bg

box background

Definition at line 715 of file cm.h.

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

◆ box_fg

uint32_t SIO::box_fg

box foreground

Definition at line 714 of file cm.h.

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

◆ brackets

char SIO::brackets[3]

Definition at line 750 of file cm.h.

Referenced by initialize_cells(), and mapp_initialization().

◆ brackets_bg

uint32_t SIO::brackets_bg

brackets background

Definition at line 719 of file cm.h.

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

◆ brackets_fg

uint32_t SIO::brackets_fg

brackets foreground

Definition at line 718 of file cm.h.

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

◆ bred

uint32_t SIO::bred

bold red

Definition at line 703 of file cm.h.

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

◆ bwhite

uint32_t SIO::bwhite

bold white

Definition at line 709 of file cm.h.

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

◆ byellow

uint32_t SIO::byellow

bold yellow

Definition at line 705 of file cm.h.

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

◆ clr_cnt

uint SIO::clr_cnt

number of colors currently in use

Definition at line 746 of file cm.h.

◆ clr_idx

uint SIO::clr_idx

current color index

Definition at line 748 of file cm.h.

◆ clr_pair_cnt

uint SIO::clr_pair_cnt

number of color pairs currently in use

Definition at line 747 of file cm.h.

◆ clr_pair_idx

uint SIO::clr_pair_idx

current color pair index

Definition at line 749 of file cm.h.

◆ cmdln_bg

uint32_t SIO::cmdln_bg

line number background index

Definition at line 725 of file cm.h.

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

◆ cmdln_fg

uint32_t SIO::cmdln_fg

line number color index

Definition at line 724 of file cm.h.

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

◆ cp_bold

ushort SIO::cp_bold

bold color pair index

Definition at line 768 of file cm.h.

◆ cp_box

ushort SIO::cp_box

box color pair index

Definition at line 761 of file cm.h.

◆ cp_brackets

ushort SIO::cp_brackets

brackets color pair index

Definition at line 756 of file cm.h.

◆ cp_chk

ushort SIO::cp_chk

checkmark color pair index

Definition at line 767 of file cm.h.

◆ cp_cmdln

ushort SIO::cp_cmdln

command line color pair index

Definition at line 763 of file cm.h.

◆ cp_default

ushort SIO::cp_default

default color pair index

Definition at line 754 of file cm.h.

◆ cp_fill_char

ushort SIO::cp_fill_char

fill character color pair index

Definition at line 755 of file cm.h.

◆ cp_ind

ushort SIO::cp_ind

indicator color pair index

Definition at line 762 of file cm.h.

◆ cp_ln

ushort SIO::cp_ln

line number color pair index

Definition at line 765 of file cm.h.

◆ cp_nt

ushort SIO::cp_nt

normal text color pair index

Definition at line 757 of file cm.h.

◆ cp_nt_hl

ushort SIO::cp_nt_hl

highlight color pair index

Definition at line 759 of file cm.h.

◆ cp_nt_hl_rev

ushort SIO::cp_nt_hl_rev

reverse highlight color pair index

Definition at line 760 of file cm.h.

◆ cp_nt_rev

ushort SIO::cp_nt_rev

reverse color pair index

Definition at line 758 of file cm.h.

◆ cp_ran

ushort SIO::cp_ran

right angle color pair index

Definition at line 766 of file cm.h.

◆ cp_title

ushort SIO::cp_title

title color pair index

Definition at line 764 of file cm.h.

◆ cyan

uint32_t SIO::cyan

cyan

Definition at line 699 of file cm.h.

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

◆ fg

uint32_t SIO::fg

foreground color

Definition at line 712 of file cm.h.

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

◆ fill_char

char SIO::fill_char[2]

Definition at line 751 of file cm.h.

Referenced by mapp_initialization().

◆ fill_char_bg

uint32_t SIO::fill_char_bg

fill character background

Definition at line 721 of file cm.h.

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

◆ fill_char_fg

uint32_t SIO::fill_char_fg

fill character foreground

Definition at line 720 of file cm.h.

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

◆ gray_gamma

double SIO::gray_gamma

gray gamma correction value

Definition at line 692 of file cm.h.

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

◆ green

uint32_t SIO::green

green

Definition at line 695 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 690 of file cm.h.

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

◆ ind_bg

uint32_t SIO::ind_bg

indicator background

Definition at line 717 of file cm.h.

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

◆ ind_fg

uint32_t SIO::ind_fg

indicator foreground

Definition at line 716 of file cm.h.

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

◆ ln_bg

uint32_t SIO::ln_bg

line number background index

Definition at line 723 of file cm.h.

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

◆ ln_fg

uint32_t SIO::ln_fg

line number color index

Definition at line 722 of file cm.h.

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

◆ magenta

uint32_t SIO::magenta

magenta

Definition at line 698 of file cm.h.

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

◆ nt_bg

uint32_t SIO::nt_bg

color code for normal text background

Definition at line 727 of file cm.h.

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

◆ nt_fg

uint32_t SIO::nt_fg

color code for normal text foreground

Definition at line 726 of file cm.h.

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

◆ nt_hl_bg

uint32_t SIO::nt_hl_bg

normal text highlight background

Definition at line 731 of file cm.h.

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

◆ nt_hl_fg

uint32_t SIO::nt_hl_fg

normal text highlight foreground

Definition at line 730 of file cm.h.

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

◆ nt_hl_rev_bg

uint32_t SIO::nt_hl_rev_bg

normal text highlight reverse background

Definition at line 733 of file cm.h.

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

◆ nt_hl_rev_fg

uint32_t SIO::nt_hl_rev_fg

normal text highlight reverse foreground

Definition at line 732 of file cm.h.

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

◆ nt_rev_bg

uint32_t SIO::nt_rev_bg

normal text reverse background

Definition at line 729 of file cm.h.

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

◆ nt_rev_fg

uint32_t SIO::nt_rev_fg

normal text reverse foreground

Definition at line 728 of file cm.h.

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

◆ orange

uint32_t SIO::orange

orange

Definition at line 701 of file cm.h.

Referenced by process_config_file().

◆ ran_bg

uint32_t SIO::ran_bg

right angle background

Definition at line 737 of file cm.h.

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

◆ ran_fg

uint32_t SIO::ran_fg

right angle foreground

Definition at line 736 of file cm.h.

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

◆ red

uint32_t SIO::red

red

Definition at line 694 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 689 of file cm.h.

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

◆ stderr_fd

int SIO::stderr_fd

stderr file descriptor

Definition at line 744 of file cm.h.

◆ stderr_fp

FILE* SIO::stderr_fp

stderr stream pointer

Definition at line 740 of file cm.h.

◆ stdin_fd

int SIO::stdin_fd

stdin file descriptor

Definition at line 742 of file cm.h.

◆ stdin_fp

FILE* SIO::stdin_fp

stdin stream pointer

Definition at line 738 of file cm.h.

◆ stdout_fd

int SIO::stdout_fd

stdout file descriptor

Definition at line 743 of file cm.h.

◆ stdout_fp

FILE* SIO::stdout_fp

stdout stream pointer

Definition at line 739 of file cm.h.

◆ title_bg

uint32_t SIO::title_bg

title background

Definition at line 735 of file cm.h.

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

◆ title_fg

uint32_t SIO::title_fg

title foreground

Definition at line 734 of file cm.h.

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

◆ tty_fd

int SIO::tty_fd

terminal device file descriptor

Definition at line 745 of file cm.h.

◆ tty_fp

FILE* SIO::tty_fp

terminal device stream pointer

Definition at line 741 of file cm.h.

◆ tty_name

char SIO::tty_name[MAXLEN]

name of the terminal device

Definition at line 753 of file cm.h.

◆ white

uint32_t SIO::white

white

Definition at line 700 of file cm.h.

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

◆ yellow

uint32_t SIO::yellow

yellow

Definition at line 696 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: