How to create my own coloring function?

I have been given an assignment where I must color certain texts without using Microsoft's windows library. Basically I have to write my own coloring function from scratch, but I am clueless... How can you go about creating something like that? Any tips would be greatly appreciated.
Topic archived. No new replies allowed.