From e66a662726c6254e9529dd55f88c1e95d6f762a5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 30 Apr 2014 14:51:46 +0200 Subject: lib/colors: allow to temporary disable colors Signed-off-by: Karel Zak --- include/colors.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/colors.h') diff --git a/include/colors.h b/include/colors.h index 42881d5e3..392bf38f1 100644 --- a/include/colors.h +++ b/include/colors.h @@ -57,6 +57,11 @@ extern int colors_init(int mode, const char *util_name); /* Returns 1 or 0 */ extern int colors_wanted(void); +/* temporary enable/disable colors */ +extern void colors_off(void); +extern void colors_on(void); + + /* Set the color to CLR_SCHEME */ extern void color_fenable(const char *clr_scheme, FILE *f); @@ -73,6 +78,7 @@ static inline void color_disable(void) color_fdisable(stdout); } + extern const char *colorscheme_from_string(const char *str); -- cgit v1.2.3-55-g7522