jaimerai pour certain type de fichier mettre de la couleur au nom
static const char WHITE[] = {27, '[', 'm', 0}; static const char RED[] = {27, '[', '0', '1', ';', '3', '1', 'm', 0}; static const char GREEN[] = {27, '[', '0', '1', ';', '3', '2', 'm', 0}; static const char PURPLE[] = {27, '[', '0', '1', ';', '3', '4', 'm', 0}; static const char YELLOW[] = {27, '[', '0', '1', ';', '3', '3', 'm', 0}; static const char CYAN[] = {27, '[', '0', '1', ';', '3', '6', 'm', 0}; void color_test(void) { printf("%sRed Kikoo% Pouet\n", RED, WHITE); }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question