If you're using standard output, then it depends on the shell (and the operating system).
Read this for Unix-based systems:
https://stackoverflow.com/questions/6841143/how-to-set-font-color-for-stdout-and-stderr
Read this for Windows-based systems:
https://stackoverflow.com/questions/4920661/setting-stdout-stderr-text-color-in-windows
If you're using a windowing system, there is probably a Color property or similar.
Good luck!