Skip to content

Commit

Permalink
Improve color
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Jan 24, 2025
1 parent 824a56d commit 65b839e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statements/pbrst-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ int main(int ac, char **av)
if (colorize) {
#define HRED "\e[0;91m"
#define HMAG "\e[0;95m"
#define HYEL "\e[0;93m"
#define YEL "\e[0;33m"
#define CYN "\e[0;36m"
#define COLOR_RESET "\e[0m"
char *pi2 = str_replace(parseinfo, ": error:", ": " HRED "error" COLOR_RESET ":");
char *pi3 = str_replace(pi2, ": warning:", ": " HYEL "warning" COLOR_RESET ":");
char *pi3 = str_replace(pi2, ": warning:", ": " YEL "warning" COLOR_RESET ":");
char *pi4 = str_replace(pi3, ": debug:", ": " CYN "debug" COLOR_RESET ":");
char *pi5 = str_replace(pi4, ": corrected:", ": " HMAG "corrected" COLOR_RESET ":");
printf("%s", pi5);
Expand Down

0 comments on commit 65b839e

Please sign in to comment.