]> git.proxmox.com Git - mirror_iproute2.git/commit
color: use "light" colors for dark background
authorPetr Vorel <pvorel@suse.cz>
Wed, 1 Mar 2017 20:52:33 +0000 (21:52 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 3 Mar 2017 17:58:05 +0000 (09:58 -0800)
commit54eab4c79a6086f4d1e15ce228163514d2d2415b
tree443309fda2b52bc1558df8be315db76003367dfa
parentd896797c7b398da9273446a7f6bd742974133143
color: use "light" colors for dark background

COLORFGBG environment variable is used to detect dark background.

Idea and a bit of code is borrowed from Vim, thanks.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/color.h
lib/color.c