From 1a6d1cbfb455e71208017039d41fe7e62a69cda2 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Tue, 14 Sep 2010 18:00:35 +1000 Subject: win32: read_key: do not return -1 on unknown key -1 to lineedit means error... when tty is destroyed... it would terminate ash for some reasone --- win32/termios.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/win32/termios.c b/win32/termios.c index 177a7bdbe..283e88b3a 100644 --- a/win32/termios.c +++ b/win32/termios.c @@ -50,8 +50,6 @@ int64_t FAST_FUNC read_key(int fd, char *buf, int timeout UNUSED_PARAM) case VK_CONTROL: case VK_MENU: break; - default: - return -1; } continue; } -- cgit v1.2.3-55-g6feb