Hey all,

WAIT! STOP! Don't flame me =P

I've actually tried. I read through the FAQ and I tried using this code:

void utilClearScreen(void)
{
COORD coordScreen = { 0, 0 };
DWORD cCharsWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
DWORD dwConSize;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);

GetConsoleScreenBufferInfo(hConsole, &csbi);
dwConSize = csbi.dwSize.X * csbi.dwSize.Y;
FillConsoleOutputCharacter(hConsole, TEXT(' '), dwConSize, coordScreen, &cCharsWritten);
GetConsoleScreenBufferInfo(hConsole, &csbi);
FillConsoleOutputAttribute(hConsole, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten);
SetConsoleCursorPosition(hConsole, coordScreen);
return;
}

This method doesn't actually do anything for me. It doesn't clear my window at all, it executes but it doesn't do anything.

And I've also made a loop that loops like 50 times and puts an "endl" but this looks really bad because then the new text is at the bottom of the console window which looks bad.

Can anyone suggest any other ideas on how to clear the screen?

Thanks guys!