Different Colors in Console: How?

Started by
1 comment, last by codemonster 19 years ago
Greetings fellow forumers, I remeber I started a similar thread on C# but since now I am using C++ I assume it will be different. So how do I change that dull white color in the console window to, say, red or green? Thanks!
I'd definetly say that a glass is half-empty!
Advertisement
This will make your console life easier if you're using Windows.
- A momentary maniac with casual delusions.
Have a look at Tiffany Smith's nice Tetris clone AsciiRis which runs in a console window. The archive contains a vc6 project, the source, and an executable. [smile]

The Win32 function you're looking for is probably SetConsoleTextAttribute()


Taken from Sprites, sprites and more sprites!

This topic is closed to new replies.

Advertisement