]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/color-names.h
2 * Copyright (C) 2012-2015 Karel Zak <kzak@redhat.com>
4 * This file may be distributed under the terms of the
5 * GNU Lesser General Public License.
7 #ifndef UTIL_LINUX_COLOR_NAMES_H
8 #define UTIL_LINUX_COLOR_NAMES_H
10 #define UL_COLOR_RESET "\033[0m"
11 #define UL_COLOR_BOLD "\033[1m"
12 #define UL_COLOR_HALFBRIGHT "\033[2m"
13 #define UL_COLOR_UNDERSCORE "\033[4m"
14 #define UL_COLOR_BLINK "\033[5m"
15 #define UL_COLOR_REVERSE "\033[7m"
18 #define UL_COLOR_BLACK "\033[30m"
19 #define UL_COLOR_RED "\033[31m"
20 #define UL_COLOR_GREEN "\033[32m"
21 #define UL_COLOR_BROWN "\033[33m" /* well, brown */
22 #define UL_COLOR_BLUE "\033[34m"
23 #define UL_COLOR_MAGENTA "\033[35m"
24 #define UL_COLOR_CYAN "\033[36m"
25 #define UL_COLOR_GRAY "\033[37m"
28 #define UL_COLOR_DARK_GRAY "\033[1;30m"
29 #define UL_COLOR_BOLD_RED "\033[1;31m"
30 #define UL_COLOR_BOLD_GREEN "\033[1;32m"
31 #define UL_COLOR_BOLD_YELLOW "\033[1;33m"
32 #define UL_COLOR_BOLD_BLUE "\033[1;34m"
33 #define UL_COLOR_BOLD_MAGENTA "\033[1;35m"
34 #define UL_COLOR_BOLD_CYAN "\033[1;36m"
36 #define UL_COLOR_WHITE "\033[1;37m"
39 /* maximal length of human readable name of ESC seq. */
40 #define UL_COLORNAME_MAXSZ 32
42 extern const char *color_sequence_from_colorname(const char *str
);
44 #endif /* UTIL_LINUX_COLOR_NAMES_H */