Revert "Don't clear streams when they are reopened"

This reverts commit 7c1b15ecb8.
This commit is contained in:
Joni Savolainen 2022-01-16 13:21:45 +02:00
parent e2ba8d4398
commit aec03d14a4

View file

@ -24,4 +24,8 @@ void reopenWindowsStreams()
freopen_s(&outStream, "CONOUT$", "w+", stdout); freopen_s(&outStream, "CONOUT$", "w+", stdout);
freopen_s(&errStream, "CONOUT$", "w+", stderr); freopen_s(&errStream, "CONOUT$", "w+", stderr);
freopen_s(&inStream, "CONIN$", "r", stdin); freopen_s(&inStream, "CONIN$", "r", stdin);
std::cout.clear();
std::clog.clear();
std::cerr.clear();
std::cin.clear();
} }