Skip to content

A bunch of fixes regarding colored output

Phil Sutter netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesIn review
  2. v14 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Adjusted last patch according to feedback. Details given in changelog of that patch.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tc: Fix typo in check for colored outputtc/tc.c+1 -10 replies
2/4bridge: Fix check for colored outputbridge/bridge.c+1 -10 replies
3/4Merge common code for conditionally colored outputbridge/bridge.c include/color.h ip/ip.c +2 more+13 -60 replies
4/4lib: Enable colored output only for TTYslib/color.c man/man8/bridge.8 man/man8/ip.8 +1 more+17 -47 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [iproute PATCH v2 0/4] A bunch of fixes regarding colored output

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.

Changes since v1:
- Adjusted last patch according to feedback. Details given in changelog of that patch.

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       | 13 +++++++++++++
 man/man8/bridge.8 |  5 ++++-
 man/man8/ip.8     |  5 ++++-
 man/man8/tc.8     |  5 ++++-
 tc/tc.c           |  3 +--
 8 files changed, 30 insertions(+), 10 deletions(-)
Signature · 1 line
2.18.0