Well, you certainly have come across the limits of stdio.h. I heartily recommend the use of Curses which will give you nice colors and even a chance to build a "window" with a progress indicator bar and perhaps even a cancel "button". What's even better is that it is cross-platform and the API is simple.
in reply to A stupid sdtio problem
AgentM Systems nor Nasca Enterprises nor
Bone::Easy nor Macperl is responsible for the
comments made by
AgentM. Remember, you can build any logical system with NOR.