#include /* printf("\x1b[1;31;40m"); // Bright red on black printf("\x1b[3;33;45m"); // Blinking yellow on magenta printf("\x1b[1;30;47m"); // Bright black (grey) on dim white Style Foreground Background 1st Digit 2nd Digit 3rd Digit 0 - Reset 30 - Black 40 - Black 1 - FG Bright 31 - Red 41 - Red 2 - Unknown 32 - Green 42 - Green 3 - Unknown 33 - Yellow 43 - Yellow 4 - Underline 34 - Blue 44 - Blue 5 - BG Bright 35 - Magenta 45 - Magenta 6 - Unknown 36 - Cyan 46 - Cyan 7 - Reverse 37 - White 47 - White */ int main(){ printf("\E[H\E[J"); printf("\033[1;31;42m"); // set colours printf("Hello World"); // print printf("\033[0m"); // reset colours printf("\n"); return 0; }