I know how to get console text colored. So what I want to know is to just color a space. Sort of like a colored space. Like in tanks (see games post).
- SirCrono6
Printable View
I know how to get console text colored. So what I want to know is to just color a space. Sort of like a colored space. Like in tanks (see games post).
- SirCrono6
There are two ways to handle this:
One possibility is to use the " " (space) character and set the Background color to what you want it to. The Foreground obviously doesnt matter.
The second way, which i use, is this character, "Û" which you can just copy and paste. It is a blank block, and you can set the color to whatever you want.
Good luck hope this helps
You can use any character. Just set the foreground and background colours to the same value.
Brendan
Thanks. I like the Û way. I even made a Color.h :D. Well, anyways, how do I set it back to the default color? You know, set it to blue, then back to default.
- SirCrono6
Foreground colour: Light grey, background colour: 0.
BrendanCode:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE,
FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE
0);