output in color(using unix) in c++

I am using c++ in unix. I need colored output. I tried many commands like system("color") and all. Can anyone please explain me with an example from beginning to end. Including wat header files to be used. I have gone through many websites but i didnt find anything useful. Please help me out.
Topic archived. No new replies allowed.