]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: Add color output option
authorMathias Nyman <m.nyman@iki.fi>
Tue, 28 Apr 2015 10:18:21 +0000 (13:18 +0300)
committerStephen Hemminger <shemming@brocade.com>
Mon, 4 May 2015 15:39:17 +0000 (08:39 -0700)
commitd7bd2db52c1fcfe5159dda101f786020e8304820
tree7ef00c477120850ada03b725d0bc41d23ac8ab62
parentaeedd8e1e788af86af0634d6799671b685a37ac6
ip: Add color output option

It is hard to quickly find what you are looking for in the output of the
ip command. Color helps.

This patch adds a '-c' flag to highlight these with individual colors:
  - interface name
  - ip address
  - mac address
  - up/down state

Signed-off-by: Mathias Nyman <m.nyman@iki.fi>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
include/color.h [new file with mode: 0644]
ip/ip.c
ip/ipaddress.c
lib/Makefile
lib/color.c [new file with mode: 0644]
man/man8/ip.8