• C++ Win32 Console colors...
    8 replies, posted
So, this is my situation. I'm working on a little program and I want to change the foreground/background color on certain places [b]only[/b]. Just an example just in case: [url]http://en.wikipedia.org/wiki/File:GNU_Midnight_Commander_4.1.36_Windows_Vista.png[/url] I need help, quick if possible. Thanks!
I think that's the ncurses library or something
[cpp] #include<windows.h> SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN); [/cpp]
Thank you. Now tell me, can i choose my own colors? If so: how?
[QUOTE=Woodcutter11;22308892]Thank you. Now tell me, can i choose my own colors? If so: how?[/QUOTE] 1. Look at the code. 2. Use your brain. 3. Profit.
[QUOTE=Corewarp3;22309004]1. Look at the code. 2. Use your brain. 3. Profit.[/QUOTE] He means, can he use other colors than set constants
Addition is the way to go! But if i want exact colors...
But then how do these libraries manage to do it?
[QUOTE=nos217;22309307]But then how do these libraries manage to do it?[/QUOTE] Usually ANSI escape sequences
Sorry, you need to Log In to post a reply to this thread.