Add console wrapper app to handle console i/o redirection on Windows.

This commit is contained in:
bruvzg 2022-10-14 13:18:25 +03:00
parent 6a9317c9fc
commit 9a33c97c2a
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
9 changed files with 261 additions and 41 deletions

View file

@ -103,8 +103,6 @@ void RedirectIOToConsole() {
RedirectStream("CONIN$", "r", stdin, STD_INPUT_HANDLE);
RedirectStream("CONOUT$", "w", stdout, STD_OUTPUT_HANDLE);
RedirectStream("CONOUT$", "w", stderr, STD_ERROR_HANDLE);
printf("\n"); // Make sure our output is starting from the new line.
}
}