I want to make a text in color in C. I tried using some method below but this does not seem work on all platforms and C versions.
printf("\033[1;31m");
printf("Hello World\n");
printf("\033[0m");
On Windows 10 this seems to work ok, but on other systems I get this printed as text such as ←[1;31m
or nothing prints at all.
Is there a more standard way to color a text which is more universal accross Windows and Unix systems?