summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-14 14:42:54 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-14 14:45:32 -0500
commit0d6c12cbc8370dafcfcb2c1882303ab2610175c6 (patch)
treee43350ff1e022fe904a4a10446132daf30d8e685 /bfs.h
parentc40f26a15c0dce60ee365ee3f6d0779ef19cd947 (diff)
downloadbfs-0d6c12cbc8370dafcfcb2c1882303ab2610175c6.tar.xz
Refactor color handling.
The main benefit is colored warnings/errors during parsing.
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h6
1 files changed, 4 insertions, 2 deletions
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;