If I leave the language out of the code, then I can use colour just fine, like so
printf("%d. file has been created\r",i);
fflush(stdout);
But if I add a language, say 'c', then it all goes pear shaped and the colour tags are no longer parsed.
printf("%d. file has been created\r",i);
fflush(stdout);