aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-02 22:16:03 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-02 22:16:03 +0000
commit1c46f5edfaba9976580efe4b30b385a29a4d56c3 (patch)
tree035299b4732076809b0ed550eb4a4de50516fe6d
parentca2bbaf251984822fdd543abb453d1ffbe4d2367 (diff)
downloadtermo-1c46f5edfaba9976580efe4b30b385a29a4d56c3.tar.gz
termo-1c46f5edfaba9976580efe4b30b385a29a4d56c3.tar.xz
termo-1c46f5edfaba9976580efe4b30b385a29a4d56c3.zip
Recognise 'key_mouse' as an ignored terminfo key
-rw-r--r--driver-ti.c4
1 files changed, 3 insertions, 1 deletions
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 },