MOS Source Code
|
Go to the source code of this file.
Macros | |
#define | STD_COLOR_LIGHT 0x8 |
#define | ANSI_COLOR(...) |
ANSI color codes creator. | |
#define | ANSI_COLOR_RESET "\033[0m" |
#define | _ANSI_FG "3" |
#define | _ANSI_BG "4" |
#define | _ANSI_COLOR_black "0" |
#define | _ANSI_COLOR_red "1" |
#define | _ANSI_COLOR_green "2" |
#define | _ANSI_COLOR_yellow "3" |
#define | _ANSI_COLOR_blue "4" |
#define | _ANSI_COLOR_magenta "5" |
#define | _ANSI_COLOR_cyan "6" |
#define | _ANSI_COLOR_white "7" |
#define | _ANSI_STYLE_regular "0" |
#define | _ANSI_STYLE_bright "1" |
#define | _ANSI_STYLE_faint "2" |
#define | _ANSI_STYLE_italic "3" |
#define | _ANSI_STYLE_underline "4" |
#define | _ANSI_STYLE_blink "5" |
#define | _ANSI_STYLE_blink_fast "6" |
#define | _ANSI_STYLE_reverse "7" |
#define | _ANSI_STYLE_invisible "8" |
#define | _ANSI_COLOR_1(fg) |
#define | _ANSI_COLOR_2(fg, style) |
#define | _ANSI_COLOR_3(fg, style, bg) |
#define | _ANSI_COLOR_N(_1, _2, _3, N, ...) |
Enumerations | |
enum | standard_color_t { Black = 0x0 , Blue = 0x1 , Green = 0x2 , Cyan = 0x3 , Red = 0x4 , Magenta = 0x5 , Brown = 0x6 , Gray = 0x7 , DarkGray = Black | 0x8 , LightBlue = Blue | 0x8 , LightGreen = Green | 0x8 , LightCyan = Cyan | 0x8 , LightRed = Red | 0x8 , LightMagenta = Magenta | 0x8 , Yellow = Brown | 0x8 , White = Gray | 0x8 } |
Functions | |
should_inline void | get_ansi_color (char *buf, standard_color_t fg, standard_color_t bg) |