Possible Duplicate:
color text in terminal aplications in unix
I am working on a small Unix shell (written completely in C), and am wondering how to copy bash
's prompt coloring technique. Are there libraries to do that? Has anyone ever tried them?