Work on mouse support, it's a mess

This commit is contained in:
2014-10-13 01:03:13 +02:00
parent 5692f32bcf
commit 456093e4ed
4 changed files with 93 additions and 51 deletions

View File

@@ -196,7 +196,7 @@ handle_csi_u (termkey_t *tk, termkey_key_t *key, int cmd, long *arg, int args)
}
/*
* Handler for CSI M / CSI m mouse events in SRG and rxvt encodings
* Handler for CSI M / CSI m mouse events in SGR and rxvt encodings
* Note: This does not handle X10 encoding
*/
@@ -262,6 +262,7 @@ termkey_interpret_mouse (termkey_t *tk, const termkey_key_t *key,
termkey_key_get_linecol (key, line, col);
// XXX: WTF is this logic?
if (!event)
return TERMKEY_RES_KEY;