From 0d6c12cbc8370dafcfcb2c1882303ab2610175c6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 14 Feb 2016 14:42:54 -0500 Subject: Refactor color handling. The main benefit is colored warnings/errors during parsing. --- bfs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bfs.h') diff --git a/bfs.h b/bfs.h index 8e879f5..4b43ea5 100644 --- a/bfs.h +++ b/bfs.h @@ -54,8 +54,10 @@ struct cmdline { /** Color data. */ struct color_table *colors; - /** -color option. */ - bool color; + /** Colors to use for stdout. */ + const struct color_table *stdout_colors; + /** Colors to use for stderr. */ + const struct color_table *stderr_colors; /** -mindepth option. */ int mindepth; -- cgit v1.2.3