From 86fdf8e9879af07512fdbaf4df7fbf06df272682 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 12 Feb 2020 02:13:04 +0100 Subject: [PATCH] color --- client/ui.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/ui.c b/client/ui.c index 0cd2c589a..215bd66bc 100644 --- a/client/ui.c +++ b/client/ui.c @@ -240,7 +240,13 @@ static void fPrintAndLog(FILE *stream, const char *fmt, ...) { fprintf(stderr, "[-] Can't open logfile %s, logging disabled!\n", my_logfile_path); logging = 0; } else { - printf("[=] Session log %s\n", my_logfile_path); + + if (session.supports_colors) { + printf(_YELLOW_("[=]") "Session log " _YELLOW_("%s") "\n", my_logfile_path); + } else { + printf("[=] Session log %s\n", my_logfile_path); + } + } free(my_logfile_path); }