diff options
Diffstat (limited to 'lib/colors.c')
-rw-r--r-- | lib/colors.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/colors.c b/lib/colors.c index c8075cc1..51faa010 100644 --- a/lib/colors.c +++ b/lib/colors.c @@ -27,16 +27,21 @@ int colors_init(int mode) return ul_color_term_ok; } -void color_enable(const char *color_scheme) +int colors_wanted(void) +{ + return ul_color_term_ok; +} + +void color_fenable(const char *color_scheme, FILE *f) { if (ul_color_term_ok && color_scheme) - fputs(color_scheme, stdout); + fputs(color_scheme, f); } -void color_disable(void) +void color_fdisable(FILE *f) { if (ul_color_term_ok) - fputs(UL_COLOR_RESET, stdout); + fputs(UL_COLOR_RESET, f); } int colormode_from_string(const char *str) |