From 070c54dff4afe890a7e2a916698d9910b5aa0662 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Aug 2014 22:12:37 +0200 Subject: 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. --- osdep/terminal-win.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'osdep') 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", -- cgit v1.2.3