I'm currently clearing my console window with this piece of code:
void clrScr()
{
COORD cMap =
{
0, 3
};
if(!FillConsoleOutputAttribute(hCon, 0, 2030, cMap, &count))
{
std::cout << "Error clearing the console screen." << std::endl;
std::cout << "Error code: " << GetLastError() << std::endl;
std::cin.get();
}
}
, which I call once in the main loop.
But since my window is quite large (70x35), it's flickering quite a bit.
I was wondering if there are any faster methods of doing this?