lib/colors: add USAGE_COLORS_DEFAULT
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
81f55ab904
commit
62dc0ee83b
|
@ -39,6 +39,7 @@
|
||||||
|
|
||||||
#define UL_COLOR_WHITE "\033[1;37m"
|
#define UL_COLOR_WHITE "\033[1;37m"
|
||||||
|
|
||||||
|
|
||||||
/* --color[=WHEN] */
|
/* --color[=WHEN] */
|
||||||
enum colortmode {
|
enum colortmode {
|
||||||
UL_COLORMODE_AUTO = 0,
|
UL_COLORMODE_AUTO = 0,
|
||||||
|
@ -49,6 +50,12 @@ enum colortmode {
|
||||||
__UL_NCOLORMODES /* last */
|
__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_from_string(const char *str);
|
||||||
extern int colormode_or_err(const char *str, const char *errmsg);
|
extern int colormode_or_err(const char *str, const char *errmsg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue