summaryrefslogtreecommitdiff
path: root/libraries/base/cbits
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2019-06-16 21:31:22 +0100
committerBen Gamari <ben@smart-cactus.org>2020-07-15 16:41:02 -0400
commit4489af6bad11a198e9e6c192f41e17020f28d0c1 (patch)
treea7046d2982400ef86d1e026947618c29b908cd62 /libraries/base/cbits
parent4bf542bf1cdf2fa468457fc0af21333478293476 (diff)
downloadhaskell-4489af6bad11a198e9e6c192f41e17020f28d0c1.tar.gz
winio: core threaded I/O manager
Diffstat (limited to 'libraries/base/cbits')
-rw-r--r--libraries/base/cbits/consUtils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/cbits/consUtils.c b/libraries/base/cbits/consUtils.c
index 5ca0c1b608..ac5d3ea75a 100644
--- a/libraries/base/cbits/consUtils.c
+++ b/libraries/base/cbits/consUtils.c
@@ -1,4 +1,4 @@
-/*
+/*
* (c) The University of Glasgow 2002
*
* Win32 Console API support
@@ -46,7 +46,7 @@ set_console_buffering__(int fd, int cooked)
leave ECHO_INPUT enabled without also having LINE_INPUT,
so we have to turn both off here. */
DWORD flgs = ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT;
-
+
if ( (h = (HANDLE)_get_osfhandle(fd)) != INVALID_HANDLE_VALUE ) {
if ( GetConsoleMode(h,&st) &&
SetConsoleMode(h, cooked ? (st | ENABLE_LINE_INPUT) : st & ~flgs) ) {