|
From: Phillip S. <ps...@cf...> - 2002-05-04 16:25:08
|
The platform SDK page on SetConsoleMode() documents it. Are you sure it doesn't call SetConsoleMode() somewhere? It could possibly be that ReadConsoleInput ignores the line buffering, because it gets other events besides char input. I think that is what it is actually, though it isn't documented in the psdk. In that case, csrss needs fixed to not block ReadConsoleInput() to line buffer. At 06:11 AM 5/4/2002 -0700, you wrote: >Hey all > >The console saga continues.. > >I've started to look at the input problems with MC now. Under Windows >the input works fine. Under ReactOS the console is clearly reading in >line mode. > >In (rosapps/mc/pc/key_nt.c) MC makes this call (line 187): >win32APICALL(ReadConsoleInput(hConsoleInput, &ir, 1, &dw)); > >It then goes on to process the one key returned. It obviously expects >not to be in line mode. > >Futher up in the same file, in init_key, hConsoleInput is retrieved >as follows: >win32APICALL_HANDLE (hConsoleInput, GetStdHandle (STD_INPUT_HANDLE)); > >I'm really starting to doubt that the console is expected to be in >line mode by default... is that documented anywhere? > >- Jason |