From 38337511e9b5896006f276c111265c985b2af70d Mon Sep 17 00:00:00 2001 From: Fernando Tarlá Cardoso Lemos Date: Tue, 29 Jun 2010 20:59:03 -0300 Subject: Support customized colors. --- src/print_wireless_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/print_wireless_info.c') diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 22a9c31..60eb906 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -143,11 +143,11 @@ void print_wireless_info(const char *interface, const char *format_up, const cha if (get_wireless_info(interface, &info)) { walk = format_up; if (info.flags & WIRELESS_INFO_FLAG_HAS_QUALITY) - printf("%s", info.quality < info.quality_average ? color("#FFFF00") : color("#00FF00")); + printf("%s", info.quality < info.quality_average ? color("color_degraded") : color("color_good")); } else { walk = format_down; - printf("%s", color("#FF0000")); + printf("%s", color("color_bad")); } for (; *walk != '\0'; walk++) { -- cgit v1.2.3