summaryrefslogtreecommitdiffstats
path: root/include/colors.h
diff options
context:
space:
mode:
authorKarel Zak2014-04-30 14:51:46 +0200
committerKarel Zak2014-05-13 12:09:02 +0200
commite66a662726c6254e9529dd55f88c1e95d6f762a5 (patch)
tree34500760ccfbeab6e310274e947bf763afc3479f /include/colors.h
parentlib/colors: add support for @term and /home/kzak (diff)
downloadkernel-qcow2-util-linux-e66a662726c6254e9529dd55f88c1e95d6f762a5.tar.gz
kernel-qcow2-util-linux-e66a662726c6254e9529dd55f88c1e95d6f762a5.tar.xz
kernel-qcow2-util-linux-e66a662726c6254e9529dd55f88c1e95d6f762a5.zip
lib/colors: allow to temporary disable colors
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/colors.h')
-rw-r--r--include/colors.h6
1 files changed, 6 insertions, 0 deletions
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);