how to chage text color in c urban piguin code example
Example 1: how to chage text color in c urban piguin
Purple \033[0;35m
Example 2: how to chage text color in c urban piguin
#include <stdio.h>
void red () {
printf("\033[1;31m");
}
void yellow {
printf("\033[1;33m");
}
void reset () {
printf("\033[0m");
}
int main () {
red();
printf("Hello ");
yellow();
printf("world\n");
reset();
return 0;
}
Example 3: how to chage text color in c urban piguin
White \033[0;37m
Example 4: how to chage text color in c urban piguin
Blue \033[0;34m
Example 5: how to chage text color in c urban piguin
Cyan \033[0;36m
Example 6: how to chage text color in c urban piguin
Green \033[0;32m
Example 7: how to chage text color in c urban piguin
Red \033[0;31m
Example 8: how to chage text color in c urban piguin
Black \033[0;30m
Example 9: how to chage text color in c urban piguin
Yellow \033[0;33m
Example 10: how to chage text color in c urban piguin
Cor Texto C