dpkg 1.21.11
Macros | Enumerations | Functions
Collaboration diagram for Color support:

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)
 

Detailed Description

Macro Definition Documentation

◆ COLOR_BLACK

#define COLOR_BLACK   "\e[30m"

◆ COLOR_BLUE

#define COLOR_BLUE   "\e[34m"

◆ COLOR_BOLD

#define COLOR_BOLD   "\e[1m"

◆ COLOR_BOLD_BLACK

#define COLOR_BOLD_BLACK   "\e[1;30m"

◆ COLOR_BOLD_BLUE

#define COLOR_BOLD_BLUE   "\e[1;34m"

◆ COLOR_BOLD_CYAN

#define COLOR_BOLD_CYAN   "\e[1;36m"

◆ COLOR_BOLD_GREEN

#define COLOR_BOLD_GREEN   "\e[1;32m"

◆ COLOR_BOLD_MAGENTA

#define COLOR_BOLD_MAGENTA   "\e[1;35m"

◆ COLOR_BOLD_RED

#define COLOR_BOLD_RED   "\e[1;31m"

◆ COLOR_BOLD_WHITE

#define COLOR_BOLD_WHITE   "\e[1;37m"

◆ COLOR_BOLD_YELLOW

#define COLOR_BOLD_YELLOW   "\e[1;33m"

◆ COLOR_CYAN

#define COLOR_CYAN   "\e[36m"

◆ COLOR_ERROR

#define COLOR_ERROR   COLOR_BOLD_RED

◆ COLOR_GREEN

#define COLOR_GREEN   "\e[32m"

◆ COLOR_INFO

#define COLOR_INFO   COLOR_GREEN

◆ COLOR_MAGENTA

#define COLOR_MAGENTA   "\e[35m"

◆ COLOR_NORMAL

#define COLOR_NORMAL   ""

◆ COLOR_NOTICE

#define COLOR_NOTICE   COLOR_YELLOW

◆ COLOR_PROG

#define COLOR_PROG   COLOR_BOLD

◆ COLOR_RED

#define COLOR_RED   "\e[31m"

◆ COLOR_RESET

#define COLOR_RESET   "\e[0m"

◆ COLOR_WARN

#define COLOR_WARN   COLOR_BOLD_YELLOW

◆ COLOR_WHITE

#define COLOR_WHITE   "\e[37m"

◆ COLOR_YELLOW

#define COLOR_YELLOW   "\e[33m"

Enumeration Type Documentation

◆ color_mode

enum color_mode
Enumerator
COLOR_MODE_UNKNOWN 
COLOR_MODE_NEVER 
COLOR_MODE_ALWAYS 
COLOR_MODE_AUTO 

Function Documentation

◆ color_get()

const char * color_get ( const char *  color)

Referenced by do_internerr(), dpkg_warning_printer(), info(), notice(), and print_fatal_error().

Here is the caller graph for this function:

◆ color_set_mode()

bool color_set_mode ( const char *  mode)

References COLOR_MODE_AUTO.