dpkg 1.22.7-3-g89f48
|
Macros | |
#define | COLOR_NORMAL "" |
#define | COLOR_RESET "\e[0m" |
#define | COLOR_BOLD "\e[1m" |
#define | COLOR_BLACK "\e[30m" |
#define | COLOR_RED "\e[31m" |
#define | COLOR_GREEN "\e[32m" |
#define | COLOR_YELLOW "\e[33m" |
#define | COLOR_BLUE "\e[34m" |
#define | COLOR_MAGENTA "\e[35m" |
#define | COLOR_CYAN "\e[36m" |
#define | COLOR_WHITE "\e[37m" |
#define | COLOR_BOLD_BLACK "\e[1;30m" |
#define | COLOR_BOLD_RED "\e[1;31m" |
#define | COLOR_BOLD_GREEN "\e[1;32m" |
#define | COLOR_BOLD_YELLOW "\e[1;33m" |
#define | COLOR_BOLD_BLUE "\e[1;34m" |
#define | COLOR_BOLD_MAGENTA "\e[1;35m" |
#define | COLOR_BOLD_CYAN "\e[1;36m" |
#define | COLOR_BOLD_WHITE "\e[1;37m" |
#define | COLOR_PROG COLOR_BOLD |
#define | COLOR_INFO COLOR_GREEN |
#define | COLOR_NOTICE COLOR_YELLOW |
#define | COLOR_WARN COLOR_BOLD_YELLOW |
#define | COLOR_ERROR COLOR_BOLD_RED |
Enumerations | |
enum | color_mode { COLOR_MODE_UNKNOWN = -1 , COLOR_MODE_NEVER , COLOR_MODE_ALWAYS , COLOR_MODE_AUTO } |
Functions | |
bool | color_set_mode (const char *mode) |
const char * | color_get (const char *color) |
#define COLOR_BLACK "\e[30m" |
#define COLOR_BLUE "\e[34m" |
#define COLOR_BOLD "\e[1m" |
#define COLOR_BOLD_BLACK "\e[1;30m" |
#define COLOR_BOLD_BLUE "\e[1;34m" |
#define COLOR_BOLD_CYAN "\e[1;36m" |
#define COLOR_BOLD_GREEN "\e[1;32m" |
#define COLOR_BOLD_MAGENTA "\e[1;35m" |
#define COLOR_BOLD_RED "\e[1;31m" |
#define COLOR_BOLD_WHITE "\e[1;37m" |
#define COLOR_BOLD_YELLOW "\e[1;33m" |
#define COLOR_CYAN "\e[36m" |
#define COLOR_ERROR COLOR_BOLD_RED |
#define COLOR_GREEN "\e[32m" |
#define COLOR_INFO COLOR_GREEN |
#define COLOR_MAGENTA "\e[35m" |
#define COLOR_NORMAL "" |
#define COLOR_NOTICE COLOR_YELLOW |
#define COLOR_PROG COLOR_BOLD |
#define COLOR_RED "\e[31m" |
#define COLOR_RESET "\e[0m" |
#define COLOR_WARN COLOR_BOLD_YELLOW |
#define COLOR_WHITE "\e[37m" |
#define COLOR_YELLOW "\e[33m" |
enum color_mode |
const char * color_get | ( | const char * | color | ) |
Referenced by do_internerr(), dpkg_warning_printer(), info(), notice(), and print_fatal_error().
bool color_set_mode | ( | const char * | mode | ) |
References COLOR_MODE_ALWAYS, COLOR_MODE_AUTO, and COLOR_MODE_NEVER.