Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Text Color in C++ DOS Console - Argh!!!

This topic is 6400 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can someone please xplain to me how to change the color of a letter or a word in C++ DOS console mode? I''ve been trying to find out for 3 days now, with no luck. E-mail: platinumminds@hotmail.com AIM: SOB5555

Share this post

Link to post
Share on other sites
Include conio.h and use textcolor()/textbackground(), eg. textcolor(CYAN); textbackground(LIGHTRED); Then use cprintf/cputs/putch/whatever to output to the screen.

"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder."
- Fireside, taken from back of the Elite album

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!