more colors

This commit is contained in:
2020-11-03 18:02:36 +01:00
parent 747cbd3658
commit 28876eaa14
3 changed files with 7 additions and 3 deletions

View File

@ -112,6 +112,7 @@ int coloredMsg(const t_logColor color, const char *format, ...) {
const static char RED[] = "\x1b[31;1m";
const static char GREEN[] = "\x1b[32;1m";
const static char BLUE[] = "\x1b[34;1m";
const static char YELLOW[] = "\x1b[33;1m";
const char *pre = NULL;
switch (color) {
case LOG_HIGH:
@ -126,6 +127,9 @@ int coloredMsg(const t_logColor color, const char *format, ...) {
case LOG_GREEN:
pre = GREEN;
break;
case LOG_YELLOW:
pre = YELLOW;
break;
}
va_list vl;
va_start(vl, format);