basic/log: put location in a dark shade of yellow

It is different then the other colors we use. Tested on gnome-terminal,
urxvt, urxvt -rv, xterm, linux console.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-07-02 09:34:12 +02:00
parent 1ad023e770
commit d35305fe83
2 changed files with 14 additions and 7 deletions
+7 -1
View File
@@ -351,7 +351,13 @@ static int write_to_console(
get_log_colors(LOG_PRI(level), &on, &off, NULL);
if (show_location) {
(void) snprintf(location, sizeof location, "%s:%i: ", file, line);
const char *lon = "", *loff = "";
if (show_color) {
lon = ANSI_HIGHLIGHT_YELLOW4;
loff = ANSI_NORMAL;
}
(void) snprintf(location, sizeof location, "%s%s:%i%s: ", lon, file, line, loff);
iovec[n++] = IOVEC_MAKE_STRING(location);
}