From d7b0ac68ef1bea3667ebf12b472e50a323730854 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Wed, 13 May 2020 14:03:41 +0200 Subject: [PATCH] green text --- hkd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hkd.c b/hkd.c index e311b1c..cfb0a20 100644 --- a/hkd.c +++ b/hkd.c @@ -22,6 +22,7 @@ #define ANSI_COLOR_RESET "\x1b[0m" #define yellow(str) (ANSI_COLOR_YELLOW str ANSI_COLOR_RESET) +#define green(str) (ANSI_COLOR_GREEN str ANSI_COLOR_RESET) #define red(str) (ANSI_COLOR_RED str ANSI_COLOR_RESET) #define test_bit(yalv, abs_b) ((((char *)abs_b)[yalv/8] & (1< 0) #define die(str) {perror(red(str)); exit(errno);} @@ -288,7 +289,7 @@ void update_descriptors_list (int **fds, int *fd_num) } closedir(ev_dir); if (*fd_num) { - fprintf(stderr, yellow("Monitoring %d devices\n"), *fd_num); + fprintf(stderr, green("Monitoring %d devices\n"), *fd_num); } else { fprintf(stderr, red("Could not open any devices, exiting\n")); exit(-1);