View Single Post
Old 20-03-2010, 01:11 PM   #1
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


 
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
Default C++ text color include for Windows enviroment

I was messing with some things yesterday and got somewhat annoyed at the fact that while there is a way to change text and background color in a Windows console enviroment (for specific parts of the text rather than the whole thing at once), it's slightly unintuitive for the end user.

So, I cooked up a custom include with a few functions and definitions that make the color-changing a breeze:
Source code

(Attached as textcolor.h )
Note that negative argument values are used to reset the setting to default.
Attached Files
File Type: rar textcolor.rar (459 Bytes, 1 views)
__________________

"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
The Fifth Horseman is offline                         Send a private message to The Fifth Horseman
Reply With Quote