From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Sutter Subject: [iproute PATCH 0/4] A bunch of fixes regarding colored output Date: Wed, 15 Aug 2018 11:06:06 +0200 Message-ID: <20180815090610.16646-1-phil@nwl.cc> Cc: netdev@vger.kernel.org, Till Maas To: Stephen Hemminger Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:40030 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728576AbeHOL5v (ORCPT ); Wed, 15 Aug 2018 07:57:51 -0400 Sender: netdev-owner@vger.kernel.org List-ID: 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