From: Lars Kumbier Date: Tue, 10 Jul 2012 13:26:08 +0000 (+0200) Subject: colorful ipv6 status message X-Git-Tag: 2.6~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f5c96008b0c5ec41b6f136b0af41c56f6af2ccb8;p=i3%2Fi3status colorful ipv6 status message --- diff --git a/src/print_ipv6_addr.c b/src/print_ipv6_addr.c index b7f668a..abf4508 100644 --- a/src/print_ipv6_addr.c +++ b/src/print_ipv6_addr.c @@ -119,7 +119,9 @@ void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, con char *outwalk = buffer; if (addr_string == NULL) { + START_COLOR("color_bad"); OUTPUT_FULL_TEXT(format_down); + END_COLOR; return; } @@ -134,6 +136,7 @@ void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, con walk += strlen("ip"); } } - + START_COLOR("color_good"); OUTPUT_FULL_TEXT(buffer); + END_COLOR; }