diff options
Diffstat (limited to 'libbb/read_key.c')
-rw-r--r-- | libbb/read_key.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/read_key.c b/libbb/read_key.c index cf8ed411e..54886cc9c 100644 --- a/libbb/read_key.c +++ b/libbb/read_key.c | |||
@@ -112,6 +112,11 @@ int64_t FAST_FUNC read_key(int fd, char *buffer, int timeout) | |||
112 | 0 | 112 | 0 |
113 | }; | 113 | }; |
114 | 114 | ||
115 | #if ENABLE_PLATFORM_MINGW32 | ||
116 | if (!(terminal_mode(FALSE) & VT_INPUT)) | ||
117 | return windows_read_key(fd, buffer, timeout); | ||
118 | #endif | ||
119 | |||
115 | pfd.fd = fd; | 120 | pfd.fd = fd; |
116 | pfd.events = POLLIN; | 121 | pfd.events = POLLIN; |
117 | 122 | ||