4 auto color_id = (uint32_t)color;
5 if (color_id) printf(
"\033[1;%dm", (uint32_t)color + 30);
14 auto color_id = (uint32_t)color;
15 if (color_id) fprintf(stream,
"\033[1;%dm", (uint32_t)color + 30);
18 vfprintf(stream, fmt, args);
20 fprintf(stream,
"\033[0m");
void fprintf_color(PrintColor color, FILE *stream, const char *fmt,...)
void printf_color(PrintColor color, const char *fmt,...)