mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 03:58:05 -05:00
Move comment about ECHO and LINE input modes to a more sensible position.
Spotted by Ben Rudiak-Gould. [originally from svn r5976]
This commit is contained in:
parent
3c7cb747f6
commit
b400397f69
@ -598,16 +598,16 @@ int main(int argc, char **argv)
|
|||||||
inhandle = GetStdHandle(STD_INPUT_HANDLE);
|
inhandle = GetStdHandle(STD_INPUT_HANDLE);
|
||||||
outhandle = GetStdHandle(STD_OUTPUT_HANDLE);
|
outhandle = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
errhandle = GetStdHandle(STD_ERROR_HANDLE);
|
errhandle = GetStdHandle(STD_ERROR_HANDLE);
|
||||||
GetConsoleMode(inhandle, &orig_console_mode);
|
|
||||||
SetConsoleMode(inhandle, ENABLE_PROCESSED_INPUT);
|
|
||||||
|
|
||||||
main_thread_id = GetCurrentThreadId();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Turn off ECHO and LINE input modes. We don't care if this
|
* Turn off ECHO and LINE input modes. We don't care if this
|
||||||
* call fails, because we know we aren't necessarily running in
|
* call fails, because we know we aren't necessarily running in
|
||||||
* a console.
|
* a console.
|
||||||
*/
|
*/
|
||||||
|
GetConsoleMode(inhandle, &orig_console_mode);
|
||||||
|
SetConsoleMode(inhandle, ENABLE_PROCESSED_INPUT);
|
||||||
|
|
||||||
|
main_thread_id = GetCurrentThreadId();
|
||||||
|
|
||||||
handles[0] = netevent;
|
handles[0] = netevent;
|
||||||
handles[1] = stdinevent;
|
handles[1] = stdinevent;
|
||||||
handles[2] = stdoutevent;
|
handles[2] = stdoutevent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user