summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kumbier <larsscheithauer@googlemail.com>2012-07-10 15:26:08 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-07-10 20:37:54 +0200
commitf5c96008b0c5ec41b6f136b0af41c56f6af2ccb8 (patch)
treea649ead0f9ec22e627626938424f6a646cac4dd0
parenteec9629eb80263516dcde9703d3e9577a610af0d (diff)
colorful ipv6 status message
-rw-r--r--src/print_ipv6_addr.c5
1 files changed, 4 insertions, 1 deletions
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;
}