summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2019-02-04 14:14:37 +0100
committerKarel Zak2019-02-04 14:14:37 +0100
commit5db5962339dbd619a8f779961548fb667d3c9376 (patch)
tree101b32722a49a3d8a3dd1c70538870e90d26f1ba /include
parentsfdisk: fix logical partition resize when start specified (diff)
downloadkernel-qcow2-util-linux-5db5962339dbd619a8f779961548fb667d3c9376.tar.gz
kernel-qcow2-util-linux-5db5962339dbd619a8f779961548fb667d3c9376.tar.xz
kernel-qcow2-util-linux-5db5962339dbd619a8f779961548fb667d3c9376.zip
lib/colors: force to "never" mode on non-terminal output
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/colors.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/colors.h b/include/colors.h
index 3636beb55..d4ae4e407 100644
--- a/include/colors.h
+++ b/include/colors.h
@@ -38,6 +38,9 @@ extern int colors_init(int mode, const char *util_name);
/* Returns 1 or 0 */
extern int colors_wanted(void);
+/* Returns UL_COLORMODE_* */
+extern int colors_mode(void);
+
/* temporary enable/disable colors */
extern void colors_off(void);
extern void colors_on(void);