--- winsup/fhandler.cc 1997/01/31 17:04:26 1.5 +++ winsup/fhandler.cc 1997/02/02 02:16:43 @@ -2427,11 +2432,14 @@ debug_printf("FakeReadFile, res = %d, flags = %x\n", res, flags); /* if things are special, just do what we used to */ - if ((!res) - || (flags & ENABLE_LINE_INPUT) - || (ov != 0)) + if ((!res) || (ov !=0)) { return ReadFile (hndl, pv, lenin, done, ov); + } + if (flags & ENABLE_LINE_INPUT) + { /* I know this is just treating the symptoms */ + FlushConsoleInputBuffer(hndl); + return ReadFile (hndl, pv, lenin, done, ov); } /* otherwise, do something that works */