EraseConsole()
EraseConsole() won't set the Clear flag from the SetConsoleOptions() command to True for
the current window. If you want that, use ClearConsole() instead. See ClearConsole for details.
You must enable advanced console mode using EnableAdvancedConsole() before you can use this function. See EnableAdvancedConsole for details.