Skip to content

Commit

Permalink
color formatting during warning context
Browse files Browse the repository at this point in the history
  • Loading branch information
envenomator committed Jun 29, 2024
1 parent 9ab1939 commit cf9f77d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ void displayerror(const char *msg, const char *context, uint8_t level) {
}
printf("%s", msg);
if(strlen(context)) {
vdp_set_text_colour(DARK_YELLOW);
if(level == LEVEL_WARNING)
vdp_set_text_colour(BRIGHT_WHITE);
else
vdp_set_text_colour(DARK_YELLOW);
printf(" \'%s\'", context);
}
printf("\r\n");
Expand Down

0 comments on commit cf9f77d

Please sign in to comment.