Answers for "can you use color in c"

C
1

c colour

// F: Forground; B: Background; UL: Underline
char* F_RED = "33[0;31m";
char* F_GREEN = "33[0;32m";
char* F_YELLOW = "33[0;33m";
char* F_BLUE = "33[0;34m";

char* B_RED = "33[0;41m";
char* B_GREEN = "33[0;42m";
char* B_YELLOW = "33[0;43m";
char* B_BLUE = "33[0;44m";

char* UL_N = "33[4;0m"; /*Underline with no colour*/
char* UL_F_RED = "33[4;31m"; /*Underline in red*/
char* UL_F_GREEN = "33[4;32m"; /*Underline in green*/
char* UL_F_YELLOW = "33[4;33m"; /*Underline in yellow*/
char* UL_F_BLUE = "33[4;34m"; /*Underline in yellow*/

char* RMF = "33[0;00m"; /*Remove formatting & colours*/
Posted by: Guest on October-27-2020

Code answers related to "C"

Browse Popular Code Answers by Language