From fea016afc0c1102a4847f4e5676260b14d81096e Mon Sep 17 00:00:00 2001 From: MIURA Masahiro Date: Mon, 4 Dec 2017 19:22:34 +0900 Subject: Fix the color of compiler messages for light-themed terminal. --- src/errmsg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/errmsg.cpp') diff --git a/src/errmsg.cpp b/src/errmsg.cpp index 01c3ee8429..edbfd858a8 100644 --- a/src/errmsg.cpp +++ b/src/errmsg.cpp @@ -24,20 +24,20 @@ static void print_err_msg_type(ErrorMsg *err, ErrColor color, ErrType err_type) bool is_tty = os_stderr_tty(); if (color == ErrColorOn || (color == ErrColorAuto && is_tty)) { if (err_type == ErrTypeError) { - os_stderr_set_color(TermColorWhite); + os_stderr_set_color(TermColorBold); fprintf(stderr, "%s:%" ZIG_PRI_usize ":%" ZIG_PRI_usize ": ", path, line, col); os_stderr_set_color(TermColorRed); fprintf(stderr, "error:"); - os_stderr_set_color(TermColorWhite); + os_stderr_set_color(TermColorBold); fprintf(stderr, " %s", text); os_stderr_set_color(TermColorReset); fprintf(stderr, "\n"); } else if (err_type == ErrTypeNote) { - os_stderr_set_color(TermColorWhite); + os_stderr_set_color(TermColorBold); fprintf(stderr, "%s:%" ZIG_PRI_usize ":%" ZIG_PRI_usize ": ", path, line, col); os_stderr_set_color(TermColorCyan); fprintf(stderr, "note:"); - os_stderr_set_color(TermColorWhite); + os_stderr_set_color(TermColorBold); fprintf(stderr, " %s", text); os_stderr_set_color(TermColorReset); fprintf(stderr, "\n"); -- cgit v1.2.3