aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-26 00:50:52 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-26 00:50:52 +0100
commit9d71fc6381bb6fa3d0deb4f55a334f124e9e9abf (patch)
tree180dc9599fe24c69624f2471b5fe7e090250f5cf
parenta17eeb847e66824c4d389751cc90415d3fc1c5a3 (diff)
downloadbusybox-w32-9d71fc6381bb6fa3d0deb4f55a334f124e9e9abf.tar.gz
busybox-w32-9d71fc6381bb6fa3d0deb4f55a334f124e9e9abf.tar.bz2
busybox-w32-9d71fc6381bb6fa3d0deb4f55a334f124e9e9abf.zip
read_key: document more weird key sequences
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/read_key.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libbb/read_key.c b/libbb/read_key.c
index 410a99995..88ea79dc6 100644
--- a/libbb/read_key.c
+++ b/libbb/read_key.c
@@ -27,7 +27,11 @@ int64_t FAST_FUNC read_key(int fd, char *buffer)
27#if 0 27#if 0
28 'O','P' |0x80,KEYCODE_FUN1 , 28 'O','P' |0x80,KEYCODE_FUN1 ,
29 /* [ESC] ESC O [2] P - [Alt-][Shift-]F1 */ 29 /* [ESC] ESC O [2] P - [Alt-][Shift-]F1 */
30 /* Ctrl- seems to not affect sequences */ 30 /* ESC [ O 1 ; 2 P - Shift-F1 */
31 /* ESC [ O 1 ; 3 P - Alt-F1 */
32 /* ESC [ O 1 ; 4 P - Alt-Shift-F1 */
33 /* ESC [ O 1 ; 5 P - Ctrl-F1 */
34 /* ESC [ O 1 ; 6 P - Ctrl-Shift-F1 */
31 'O','Q' |0x80,KEYCODE_FUN2 , 35 'O','Q' |0x80,KEYCODE_FUN2 ,
32 'O','R' |0x80,KEYCODE_FUN3 , 36 'O','R' |0x80,KEYCODE_FUN3 ,
33 'O','S' |0x80,KEYCODE_FUN4 , 37 'O','S' |0x80,KEYCODE_FUN4 ,
@@ -73,12 +77,18 @@ int64_t FAST_FUNC read_key(int fd, char *buffer)
73 '[','2','1','~'|0x80,KEYCODE_FUN10 , 77 '[','2','1','~'|0x80,KEYCODE_FUN10 ,
74 '[','2','3','~'|0x80,KEYCODE_FUN11 , 78 '[','2','3','~'|0x80,KEYCODE_FUN11 ,
75 '[','2','4','~'|0x80,KEYCODE_FUN12 , 79 '[','2','4','~'|0x80,KEYCODE_FUN12 ,
80 /* ESC [ 2 4 ; 2 ~ - Shift-F12 */
81 /* ESC [ 2 4 ; 3 ~ - Alt-F12 */
82 /* ESC [ 2 4 ; 4 ~ - Alt-Shift-F12 */
83 /* ESC [ 2 4 ; 5 ~ - Ctrl-F12 */
84 /* ESC [ 2 4 ; 6 ~ - Ctrl-Shift-F12 */
76#endif 85#endif
77 '[','1',';','5','A' |0x80,KEYCODE_CTRL_UP , 86 '[','1',';','5','A' |0x80,KEYCODE_CTRL_UP ,
78 '[','1',';','5','B' |0x80,KEYCODE_CTRL_DOWN , 87 '[','1',';','5','B' |0x80,KEYCODE_CTRL_DOWN ,
79 '[','1',';','5','C' |0x80,KEYCODE_CTRL_RIGHT, 88 '[','1',';','5','C' |0x80,KEYCODE_CTRL_RIGHT,
80 '[','1',';','5','D' |0x80,KEYCODE_CTRL_LEFT , 89 '[','1',';','5','D' |0x80,KEYCODE_CTRL_LEFT ,
81 0 90 0
91 /* ESC [ Z - Shift-Tab */
82 }; 92 };
83 93
84 errno = 0; 94 errno = 0;