From 1c46f5edfaba9976580efe4b30b385a29a4d56c3 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sun, 2 Nov 2008 22:16:03 +0000 Subject: Recognise 'key_mouse' as an ignored terminfo key --- driver-ti.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/driver-ti.c b/driver-ti.c index 970d2a5..1540a7a 100644 --- a/driver-ti.c +++ b/driver-ti.c @@ -65,7 +65,8 @@ static void *new_driver(termkey_t *tk, const char *term) if(!funcname2keysym(strfnames[i] + 4, &type, &sym, &mask, &set)) continue; - register_seq(ti, value, type, sym, mask, set); + if(sym != TERMKEY_SYM_NONE) + register_seq(ti, value, type, sym, mask, set); } return ti; @@ -167,6 +168,7 @@ static struct { { "left", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_LEFT, 0 }, { "mark", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MARK, 0 }, { "message", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MESSAGE, 0 }, + { "mouse", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_NONE, 0 }, { "move", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_MOVE, 0 }, { "next", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_PAGEDOWN, 0 }, // Not quite, but it's the best we can do { "npage", TERMKEY_TYPE_KEYSYM, TERMKEY_SYM_PAGEDOWN, 0 }, -- cgit v1.2.3-70-g09d2