Skip to content
Snippets Groups Projects
Commit 870a5a28 authored by deuce's avatar deuce
Browse files

Actually, the AllocConsole() thing is a good idea... this way, the console

I/O will work regardless of if the application is a console app or not.
parent e898ba89
No related branches found
No related tags found
No related merge requests found
......@@ -375,8 +375,10 @@ int win32_initciolib(long inmode)
int i,j;
CONSOLE_SCREEN_BUFFER_INFO sbuff;
if(!isatty(fileno(stdin)))
return(0);
if(!isatty(fileno(stdin))) {
if(!AllocConsole())
return(0);
}
if(!GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), &conmode))
return(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment