aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 18:00:35 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 18:02:21 +1000
commit1a6d1cbfb455e71208017039d41fe7e62a69cda2 (patch)
tree35125bb8ef3f80f8815643543ca05d2b7cdab080
parenta335db7cd1acbe54c0bfe5ec02457d430e866f04 (diff)
downloadbusybox-w32-1a6d1cbfb455e71208017039d41fe7e62a69cda2.tar.gz
busybox-w32-1a6d1cbfb455e71208017039d41fe7e62a69cda2.tar.bz2
busybox-w32-1a6d1cbfb455e71208017039d41fe7e62a69cda2.zip
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
-rw-r--r--win32/termios.c2
1 files changed, 0 insertions, 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)
50 case VK_CONTROL: 50 case VK_CONTROL:
51 case VK_MENU: 51 case VK_MENU:
52 break; 52 break;
53 default:
54 return -1;
55 } 53 }
56 continue; 54 continue;
57 } 55 }