diff options
author | wm4 <wm4@nowhere> | 2014-08-21 22:12:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-21 22:45:58 +0200 |
commit | 070c54dff4afe890a7e2a916698d9910b5aa0662 (patch) | |
tree | b1ee0f5b5fc7c59352fed36a15967c61f71d4b27 | |
parent | 47b29094c34bdf0aab9f213c8eb2347993e4d505 (diff) |
terminal-win: remove nonsensical code
Something about a non-working MinGW thing? Really, I don't care. It
also prevents using the console API properly.
-rw-r--r-- | osdep/terminal-win.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/osdep/terminal-win.c b/osdep/terminal-win.c index 9b985d7378..d40e0655d6 100644 --- a/osdep/terminal-win.c +++ b/osdep/terminal-win.c @@ -70,15 +70,6 @@ static int getch2_internal(void) INPUT_RECORD eventbuffer[128]; DWORD retval; int i = 0; - if (!getch2_status) { - // supports e.g. MinGW xterm, unfortunately keys are only received after - // enter was pressed. - uint8_t c; - if (!PeekNamedPipe(in, NULL, 1, &retval, NULL, NULL) || !retval) - return -1; - ReadFile(in, &c, 1, &retval, NULL); - return retval == 1 ? c : -1; - } /*check if there are input events*/ if (!GetNumberOfConsoleInputEvents(in, &retval)) { printf("getch2: can't get number of input events: %i\n", |