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_eth_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/print_eth_info.c') diff --git a/src/print_eth_info.c b/src/print_eth_info.c index 9ad9b92..28ba6c1 100644 --- a/src/print_eth_info.c +++ b/src/print_eth_info.c @@ -79,12 +79,12 @@ void print_eth_info(const char *interface, const char *format_up, const char *fo const char *ip_address = get_ip_addr(interface); if (ip_address == NULL) { - printf("%s", color("#FF0000")); + printf("%s", color("color_bad")); printf("%s", format_down); (void)printf("%s", endcolor()); return; } else { - printf("%s", color("#00FF00")); + printf("%s", color("color_good")); } for (walk = format_up; *walk != '\0'; walk++) { -- cgit v1.2.3