aboutsummaryrefslogtreecommitdiff
path: root/src/errmsg.cpp
diff options
context:
space:
mode:
authorMIURA Masahiro <echochamber@gmail.com>2017-12-04 19:22:34 +0900
committerMIURA Masahiro <echochamber@gmail.com>2017-12-04 19:22:34 +0900
commitfea016afc0c1102a4847f4e5676260b14d81096e (patch)
treea109b552cc30b78fc058b8f4a8fd80c8c344a8ba /src/errmsg.cpp
parent76f3bdfff8224144e7b57748eb8eda2001d0308d (diff)
downloadzig-fea016afc0c1102a4847f4e5676260b14d81096e.tar.gz
zig-fea016afc0c1102a4847f4e5676260b14d81096e.zip
Fix the color of compiler messages for light-themed terminal.
Diffstat (limited to 'src/errmsg.cpp')
-rw-r--r--src/errmsg.cpp8
1 files changed, 4 insertions, 4 deletions
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");