From 5db5962339dbd619a8f779961548fb667d3c9376 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 4 Feb 2019 14:14:37 +0100 Subject: lib/colors: force to "never" mode on non-terminal output Signed-off-by: Karel Zak --- include/colors.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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); -- cgit v1.2.3-55-g7522