0

3 months ago me and my classmates played with visual c++ 6.0. We made a infinite loop of numbers that kinda looks like the matrix thing. We changed the font of the cmd of c++ to green. Now the problem is I can't turn it back to normal. I tried the Tools -> options thing i found in the internet but it didn't work. Does anyone know how I can turn it back to normal? thanks. BTW this is the code we used to make the font green.

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 2)
2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by tkud
0

In case you do not understand what was in the link I gave you,this statement should do the job: produces black text on a white background.

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);

Edited by pyTony: fixed formating

0

Sorry, I didnt put that in code tags...

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.