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

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

Detailed Description

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

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

Field Documentation

◆ abg

char SIO::abg[COLOR_LEN]

color code for background with alpha

Definition at line 650 of file cm.h.

◆ bblack

char SIO::bblack[COLOR_LEN]

color code for bold black

Definition at line 640 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 644 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 646 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 649 of file cm.h.

Referenced by parse_config().

◆ bg_clr_x

char SIO::bg_clr_x[COLOR_LEN]

background color index

Definition at line 652 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 642 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 631 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 635 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 629 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 645 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 653 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 648 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 641 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 647 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 643 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 665 of file cm.h.

◆ clr_idx

int SIO::clr_idx

current color index

Definition at line 667 of file cm.h.

◆ clr_pair_cnt

int SIO::clr_pair_cnt

number of color pairs currently in use

Definition at line 666 of file cm.h.

◆ clr_pair_idx

int SIO::clr_pair_idx

current color pair index

Definition at line 668 of file cm.h.

◆ cp_bold

int SIO::cp_bold

bold color pair index

Definition at line 675 of file cm.h.

◆ cp_box

int SIO::cp_box

box color pair index

Definition at line 674 of file cm.h.

◆ cp_default

int SIO::cp_default

default color pair index

Definition at line 669 of file cm.h.

◆ cp_highlight

int SIO::cp_highlight

highlight color pair index

Definition at line 677 of file cm.h.

◆ cp_ln

int SIO::cp_ln

line number color pair index

Definition at line 678 of file cm.h.

◆ cp_ln_bg

int SIO::cp_ln_bg

line number background pair index

Definition at line 679 of file cm.h.

◆ cp_norm

int SIO::cp_norm

normal color pair index

Definition at line 670 of file cm.h.

◆ cp_reverse

int SIO::cp_reverse

reverse color pair index

Definition at line 672 of file cm.h.

◆ cp_reverse_highlight

int SIO::cp_reverse_highlight

reverse highlight color pair index

Definition at line 673 of file cm.h.

◆ cp_title

int SIO::cp_title

title color pair index

Definition at line 676 of file cm.h.

◆ cp_win

int SIO::cp_win

window color pair index

Definition at line 671 of file cm.h.

◆ cyan

char SIO::cyan[COLOR_LEN]

color code for cyan

Definition at line 637 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 651 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 630 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 633 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 628 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 655 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 654 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 636 of file cm.h.

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

◆ orange

char SIO::orange[COLOR_LEN]

color code for orange

Definition at line 639 of file cm.h.

Referenced by dump_config(), and parse_config().

◆ red

char SIO::red[COLOR_LEN]

color code for red

Definition at line 632 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 627 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 663 of file cm.h.

◆ stderr_fp

FILE* SIO::stderr_fp

stderr stream pointer

Definition at line 659 of file cm.h.

◆ stdin_fd

int SIO::stdin_fd

stdin file descriptor

Definition at line 661 of file cm.h.

Referenced by init_pick().

◆ stdin_fp

FILE* SIO::stdin_fp

stdin stream pointer

Definition at line 657 of file cm.h.

◆ stdout_fd

int SIO::stdout_fd

stdout file descriptor

Definition at line 662 of file cm.h.

Referenced by init_pick().

◆ stdout_fp

FILE* SIO::stdout_fp

stdout stream pointer

Definition at line 658 of file cm.h.

◆ tty_fd

int SIO::tty_fd

terminal device file descriptor

Definition at line 664 of file cm.h.

◆ tty_fp

FILE* SIO::tty_fp

terminal device stream pointer

Definition at line 660 of file cm.h.

◆ tty_name

char SIO::tty_name[MAXLEN]

name of the terminal device

Definition at line 656 of file cm.h.

Referenced by open_curses().

◆ white

char SIO::white[COLOR_LEN]

color code for white

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