Commit 5d219e54 authored by schultz's avatar schultz

fixes #8 by clearing all std streams to reset them from an initial error state

parent 114e7737
......@@ -125,6 +125,12 @@ void connect_console()
if (check) {
std::cerr << "Error reopening stderr" << std::endl;
}
std::cout.clear();
std::cerr.clear();
std::cin.clear();
std::wcout.clear();
std::wcerr.clear();
std::wcin.clear();
}
void attachConsole()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment