Commit ce0a1d67 authored by Tamar Christina's avatar Tamar Christina Committed by Marge Bot

winio: fix detection of tty terminals

parent 8236925f
Pipeline #22636 passed with stages
in 378 minutes and 18 seconds
......@@ -209,8 +209,8 @@ __is_console(HANDLE hFile)
DWORD handleType = GetFileType (hFile);
/* TTY must be a character device */
if (handleType == FILE_TYPE_CHAR)
return true;
if (handleType != FILE_TYPE_CHAR)
return false;
DWORD st;
/* GetConsoleMode appears to fail when it's not a TTY. In
......
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