|
From: <we...@cw...> - 2002-05-02 09:30:00
|
Quoting Jason Filby <jas...@ya...>: > Ok the rational behind this fix: > - the console cannot be in line mode to get a single char (and return > immediately after, which is what getchar requires) > - the console mode setting shouldn't be done in getc() or any lower > because they work with any kind of file (getchar is specific towards > stdin) > > Ok.. awaiting comments.. > I assume this is really a implementation for getch in which case it is correct. I think these difficulties could be avoided by looking at the WINE source code; it is available for browing on the web at http://source.winehq.org and getch is http://source.winehq.org/source/dlls/msvcrt/console.c#89 |