more colors
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user