Question: How do you color text output from command line

Is there a way to color the output text from command line, say using printf? 

printf("I want this output to be green for example");

Any alternate ways to produce colored text from the command line?

Please Wait...