summaryrefslogtreecommitdiffstats
path: root/lib/color-names.c
diff options
context:
space:
mode:
authorKarel Zak2016-02-17 12:17:23 +0100
committerKarel Zak2016-02-17 12:51:15 +0100
commit4683cf3673f15e0136129427d4a170f98fdd9da7 (patch)
tree225ddf573547c3e02249a83ce73c56057ef7efc5 /lib/color-names.c
parenthwclock.c, hwclock.8.in: new --show format (diff)
downloadkernel-qcow2-util-linux-4683cf3673f15e0136129427d4a170f98fdd9da7.tar.gz
kernel-qcow2-util-linux-4683cf3673f15e0136129427d4a170f98fdd9da7.tar.xz
kernel-qcow2-util-linux-4683cf3673f15e0136129427d4a170f98fdd9da7.zip
lib/color: add more ESC seq.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/color-names.c')
-rw-r--r--lib/color-names.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/color-names.c b/lib/color-names.c
index 923b2f039..6a302d56a 100644
--- a/lib/color-names.c
+++ b/lib/color-names.c
@@ -24,12 +24,15 @@ const char *color_sequence_from_colorname(const char *str)
{
static const struct ul_color_name basic_schemes[] = {
{ "black", UL_COLOR_BLACK },
+ { "blink", UL_COLOR_BLINK },
{ "blue", UL_COLOR_BLUE },
+ { "bold", UL_COLOR_BOLD },
{ "brown", UL_COLOR_BROWN },
{ "cyan", UL_COLOR_CYAN },
{ "darkgray", UL_COLOR_DARK_GRAY },
{ "gray", UL_COLOR_GRAY },
{ "green", UL_COLOR_GREEN },
+ { "halfbright", UL_COLOR_HALFBRIGHT },
{ "lightblue", UL_COLOR_BOLD_BLUE },
{ "lightcyan", UL_COLOR_BOLD_CYAN },
{ "lightgray,", UL_COLOR_GRAY },
@@ -38,6 +41,8 @@ const char *color_sequence_from_colorname(const char *str)
{ "lightred", UL_COLOR_BOLD_RED },
{ "magenta", UL_COLOR_MAGENTA },
{ "red", UL_COLOR_RED },
+ { "reset", UL_COLOR_RESET, },
+ { "reverse", UL_COLOR_REVERSE },
{ "yellow", UL_COLOR_BOLD_YELLOW },
};
struct ul_color_name key = { .name = (char *) str }, *res;