dpkg 1.21.11
Macros | Enumerations | Functions
color.h File Reference

(b8a22b7dc)

#include <stdbool.h>
#include <dpkg/macros.h>
Include dependency graph for color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)