diff options
author | Karel Zak | 2015-02-25 12:35:05 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-25 12:35:05 +0100 |
commit | 62dc0ee83b7043f15d95d57eb464d31407872ed8 (patch) | |
tree | 9931f9201083d77ad69bf8029ee4ef618ba031a2 | |
parent | build-sys: add --disable-colors-default (diff) | |
download | kernel-qcow2-util-linux-62dc0ee83b7043f15d95d57eb464d31407872ed8.tar.gz kernel-qcow2-util-linux-62dc0ee83b7043f15d95d57eb464d31407872ed8.tar.xz kernel-qcow2-util-linux-62dc0ee83b7043f15d95d57eb464d31407872ed8.zip |
lib/colors: add USAGE_COLORS_DEFAULT
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | include/colors.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/colors.h b/include/colors.h index 97efc486a..df6feb739 100644 --- a/include/colors.h +++ b/include/colors.h @@ -39,6 +39,7 @@ #define UL_COLOR_WHITE "\033[1;37m" + /* --color[=WHEN] */ enum colortmode { UL_COLORMODE_AUTO = 0, @@ -49,6 +50,12 @@ enum colortmode { __UL_NCOLORMODES /* last */ }; +#ifdef USE_COLORS_BY_DEFAUL +# define USAGE_COLORS_DEFAULT N_("colors enabled by default") +#else +# define USAGE_COLORS_DEFAULT N_("colors disabled by default") +#endif + extern int colormode_from_string(const char *str); extern int colormode_or_err(const char *str, const char *errmsg); |