This series contains fixes for conditionally colored output in patches 1 and 2. Patch 3 merges the common conditionals from ip, tc and bridge tools. Patch 4 then adds a further restriction to colored output to prevent garbled output when redirecting into a file.
Phil Sutter (4): tc: Fix typo in check for colored output bridge: Fix check for colored output Merge common code for conditionally colored output lib: Enable colored output only for TTYs bridge/bridge.c | 5 ++--- include/color.h | 1 + ip/ip.c | 3 +-- lib/color.c | 10 ++++++++++ tc/tc.c | 3 +-- 5 files changed, 15 insertions(+), 7 deletions(-) -- 2.18.0