ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
compiled_color_scheme_t Struct Reference

Compiled ANSI escape codes for a color scheme. More...

#include <include/ascii-chat/options/colorscheme.h>

Data Fields

const char * codes_16 [8]
const char * codes_256 [8]
const char * codes_truecolor [8]
char foreground_16 [16]
char foreground_256 [24]
char foreground_truecolor [32]

Detailed Description

Compiled ANSI escape codes for a color scheme.

Contains pre-compiled ANSI escape codes for all log colors in different terminal color modes. Stores pointers to allocated strings rather than inline char arrays, matching the interface expected by callers.

Definition at line 99 of file colorscheme.h.

Field Documentation

◆ codes_16

const char* compiled_color_scheme_t::codes_16[8]

Array of 16-color ANSI code strings

Definition at line 100 of file colorscheme.h.

Referenced by colorscheme_cleanup_compiled(), and colorscheme_compile_scheme().

◆ codes_256

const char* compiled_color_scheme_t::codes_256[8]

Array of 256-color ANSI code strings

Definition at line 101 of file colorscheme.h.

Referenced by colorscheme_cleanup_compiled(), and colorscheme_compile_scheme().

◆ codes_truecolor

const char* compiled_color_scheme_t::codes_truecolor[8]

Array of 24-bit truecolor ANSI code strings

Definition at line 102 of file colorscheme.h.

Referenced by colorscheme_cleanup_compiled(), and colorscheme_compile_scheme().

◆ foreground_16

char compiled_color_scheme_t::foreground_16[16]

Scheme neutral text color, not an ANSI reset

Definition at line 104 of file colorscheme.h.

Referenced by colorscheme_compile_scheme().

◆ foreground_256

char compiled_color_scheme_t::foreground_256[24]

Definition at line 105 of file colorscheme.h.

Referenced by colorscheme_compile_scheme().

◆ foreground_truecolor

char compiled_color_scheme_t::foreground_truecolor[32]

Definition at line 106 of file colorscheme.h.

Referenced by colorscheme_compile_scheme().


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