summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'osdep')
-rw-r--r--osdep/getch2.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/osdep/getch2.c b/osdep/getch2.c
index 7ddcb3f378..96fe45729a 100644
--- a/osdep/getch2.c
+++ b/osdep/getch2.c
@@ -282,11 +282,6 @@ struct termios tio_new;
tio_new.c_cc[VTIME] = 0;
tcsetattr(0,TCSANOW,&tio_new);
#endif
- /* Setting VMIN above should already make terminal non-blocking; but
- * that won't work if stdin is not a real terminal. */
- int flags = fcntl(0, F_GETFL);
- if (flags != -1)
- fcntl(0, F_SETFL, flags | O_NONBLOCK);
getch2_status=1;
}