Ok, here's the solution, thanks to ajwsurfer, for anyone else that might be interested:
CODE
printf("\033[34mThis is blue.\033[0m\n");
See that 34? That's what you use to change colors...
\033[34mThis is blue.\033[0m
Here's a list of different colors:
30 black foreground
31 red foreground
32 green foreground
33 brown foreground
34 blue foreground
35 magenta (purple) foreground
36 cyan (light blue) foreground
37 gray foreground
40 black background
41 red background
42 green background
43 brown background
44 blue background
45 magenta background
46 cyan background
47 white background
Commands can also be combined using a semicolon, like so:
CODE
printf("\033[45;37mGrey on purple.\033[0m");
Finally here is a list of other neat commands that go at the end (where the '0' is):
0 reset all attributes to their defaults
1 set bold
5 set blink
7 set reverse video
22 set normal intensity
25 blink off
27 reverse video off