mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Revert "Don't clear streams when they are reopened"
This reverts commit 7c1b15ecb8
.
This commit is contained in:
parent
e2ba8d4398
commit
aec03d14a4
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue