summaryrefslogtreecommitdiff
path: root/com32/libutil
diff options
context:
space:
mode:
authorhpa <hpa>2005-01-21 01:35:33 +0000
committerhpa <hpa>2005-01-21 01:35:33 +0000
commita53e2a69acf2074bda1b627baf8a0806152ba5b2 (patch)
tree7b5b3851ab02fda65f2fb1165a094e748bb3f464 /com32/libutil
parente8d5cb2b20b82c4e30942834fad8ddb1592bb1db (diff)
downloadsyslinux-a53e2a69acf2074bda1b627baf8a0806152ba5b2.tar.gz
Add password support to simple menu systemsyslinux-3.08-pre4
Diffstat (limited to 'com32/libutil')
-rw-r--r--com32/libutil/get_key.c10
-rw-r--r--com32/libutil/include/getkey.h5
2 files changed, 8 insertions, 7 deletions
diff --git a/com32/libutil/get_key.c b/com32/libutil/get_key.c
index e3b8f02b..228253e2 100644
--- a/com32/libutil/get_key.c
+++ b/com32/libutil/get_key.c
@@ -75,8 +75,8 @@ static const struct keycode keycodes[] = {
CODE(KEY_PGDN, "\0\x51"),
CODE(KEY_HOME, "\0\x47"),
CODE(KEY_END, "\0\x4F"),
- CODE(KEY_INS, "\0\x52"),
- CODE(KEY_DEL, "\0\x53"),
+ CODE(KEY_INSERT, "\0\x52"),
+ CODE(KEY_DELETE, "\0\x53"),
/* Now, VT/xterm/Linux codes */
CODE(KEY_F1, "\033[[A"),
@@ -110,9 +110,9 @@ static const struct keycode keycodes[] = {
CODE(KEY_END, "\033[4~"),
CODE(KEY_END, "\033[F"),
CODE(KEY_END, "\033OF"),
- CODE(KEY_INS, "\033[2~"),
- CODE(KEY_INS, "\033[@"),
- CODE(KEY_DEL, "\033[3~"),
+ CODE(KEY_INSERT, "\033[2~"),
+ CODE(KEY_INSERT, "\033[@"),
+ CODE(KEY_DELETE, "\033[3~"),
};
#define NCODES ((int)(sizeof keycodes/sizeof(struct keycode)))
diff --git a/com32/libutil/include/getkey.h b/com32/libutil/include/getkey.h
index 37efc668..d41d8c05 100644
--- a/com32/libutil/include/getkey.h
+++ b/com32/libutil/include/getkey.h
@@ -45,6 +45,7 @@
#define KEY_TAB 0x0009
#define KEY_ENTER 0x000d
#define KEY_ESC 0x001b
+#define KEY_DEL 0x007f
#define KEY_F1 0x0100
#define KEY_F2 0x0101
@@ -67,8 +68,8 @@
#define KEY_PGDN 0x0125
#define KEY_HOME 0x0126
#define KEY_END 0x0127
-#define KEY_INS 0x0128
-#define KEY_DEL 0x0129
+#define KEY_INSERT 0x0128
+#define KEY_DELETE 0x0129
int get_key(FILE *, clock_t);