How do I change the console color?

Jul 8, 2011 at 4:30pm
How do I change the color of the console?
Last edited on Jul 8, 2011 at 4:42pm
Jul 8, 2011 at 5:12pm
try this code:

you should have a <stdio>header

textcolor = MAGENTA;
textcolor = MAGENTA + BLINK;
Jul 8, 2011 at 5:26pm
It says

error: 'textcolor' was not declared in this scope
Jul 8, 2011 at 5:47pm
http://www.infernodevelopment.com/set-console-text-color


there is also a forum post here that discusses it doing it different ways,

http://www.cplusplus.com/forum/beginner/5830/
Last edited on Jul 8, 2011 at 5:54pm
Jul 8, 2011 at 5:54pm
Thanks thats epic!!!
Jul 8, 2011 at 6:17pm
you should have a <stdlib>
...
wat compiler did you use?
Aug 15, 2011 at 3:01pm
Code::Blocks

why do you ask?
Topic archived. No new replies allowed.