Colors
include/colors.h View source View on GitHubenum color {
COLOR_RED,
COLOR_GREEN,
COLOR_YELLOW,
COLOR_BLUE,
COLOR_MAGENTA,
COLOR_CYAN,
COLOR_WHITE,
COLOR_GRAY,
COLOR_LIGHT_GRAY,
COLOR_BG_BLACK,
COLOR_BG_RED,
COLOR_BG_GREEN,
COLOR_BG_YELLOW,
COLOR_BG_BLUE,
COLOR_BG_MAGENTA,
COLOR_BG_CYAN,
COLOR_BG_WHITE,
}; Macros
Section titled “Macros”ANSI_RESET
Section titled “ANSI_RESET”#define ANSI_RESET "\033[0m" ANSI_BOLD
Section titled “ANSI_BOLD”#define ANSI_BOLD "\033[1m" ANSI_UNDERLINE
Section titled “ANSI_UNDERLINE”#define ANSI_UNDERLINE "\033[4m" ANSI_BLACK
Section titled “ANSI_BLACK”#define ANSI_BLACK "\033[30m" ANSI_RED
Section titled “ANSI_RED”#define ANSI_RED "\033[31m" ANSI_GREEN
Section titled “ANSI_GREEN”#define ANSI_GREEN "\033[32m" ANSI_YELLOW
Section titled “ANSI_YELLOW”#define ANSI_YELLOW "\033[33m" ANSI_BLUE
Section titled “ANSI_BLUE”#define ANSI_BLUE "\033[34m" ANSI_MAGENTA
Section titled “ANSI_MAGENTA”#define ANSI_MAGENTA "\033[35m" ANSI_CYAN
Section titled “ANSI_CYAN”#define ANSI_CYAN "\033[36m" ANSI_WHITE
Section titled “ANSI_WHITE”#define ANSI_WHITE "\033[37m" ANSI_GRAY
Section titled “ANSI_GRAY”#define ANSI_GRAY "\033[90m" ANSI_LIGHT_GRAY
Section titled “ANSI_LIGHT_GRAY”#define ANSI_LIGHT_GRAY "\033[37m" ANSI_BG_BLACK
Section titled “ANSI_BG_BLACK”#define ANSI_BG_BLACK "\033[40m" ANSI_BG_RED
Section titled “ANSI_BG_RED”#define ANSI_BG_RED "\033[41m" ANSI_BG_GREEN
Section titled “ANSI_BG_GREEN”#define ANSI_BG_GREEN "\033[42m" ANSI_BG_YELLOW
Section titled “ANSI_BG_YELLOW”#define ANSI_BG_YELLOW "\033[43m" ANSI_BG_BLUE
Section titled “ANSI_BG_BLUE”#define ANSI_BG_BLUE "\033[44m" ANSI_BG_MAGENTA
Section titled “ANSI_BG_MAGENTA”#define ANSI_BG_MAGENTA "\033[45m" ANSI_BG_CYAN
Section titled “ANSI_BG_CYAN”#define ANSI_BG_CYAN "\033[46m" ANSI_BG_WHITE
Section titled “ANSI_BG_WHITE”#define ANSI_BG_WHITE "\033[47m" ANSI_BRIGHT_BLACK
Section titled “ANSI_BRIGHT_BLACK”#define ANSI_BRIGHT_BLACK "\033[90m" ANSI_BRIGHT_RED
Section titled “ANSI_BRIGHT_RED”#define ANSI_BRIGHT_RED "\033[91m" ANSI_BRIGHT_GREEN
Section titled “ANSI_BRIGHT_GREEN”#define ANSI_BRIGHT_GREEN "\033[92m" ANSI_BRIGHT_YELLOW
Section titled “ANSI_BRIGHT_YELLOW”#define ANSI_BRIGHT_YELLOW "\033[93m" ANSI_BRIGHT_BLUE
Section titled “ANSI_BRIGHT_BLUE”#define ANSI_BRIGHT_BLUE "\033[94m" ANSI_BRIGHT_MAGENTA
Section titled “ANSI_BRIGHT_MAGENTA”#define ANSI_BRIGHT_MAGENTA "\033[95m" ANSI_BRIGHT_CYAN
Section titled “ANSI_BRIGHT_CYAN”#define ANSI_BRIGHT_CYAN "\033[96m" ANSI_BRIGHT_WHITE
Section titled “ANSI_BRIGHT_WHITE”#define ANSI_BRIGHT_WHITE "\033[97m" ANSI_RED_CONST
Section titled “ANSI_RED_CONST”#define ANSI_RED_CONST "\033[31m" ANSI_BOLD_CONST
Section titled “ANSI_BOLD_CONST”#define ANSI_BOLD_CONST "\033[1m"