Jump to content
  • Advertisement

Archived

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

SSJ4Bardock

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

This topic is 6483 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
Advertisement
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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!