diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-04-24 17:27:48 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-04-24 17:27:48 +0100 |
commit | f5cbf9eb57b0dd38ed8054eff02defec1602f57a (patch) | |
tree | 8f5d412e6ce36cd3639600d1b6aa92b819bf07f4 /termkey.h.in | |
parent | 6645ee971807c5257ca50b073d1dee4af0630fc7 (diff) | |
download | termo-f5cbf9eb57b0dd38ed8054eff02defec1602f57a.tar.gz termo-f5cbf9eb57b0dd38ed8054eff02defec1602f57a.tar.xz termo-f5cbf9eb57b0dd38ed8054eff02defec1602f57a.zip |
Also handle CSI R; position report replies to CSI 6n
Diffstat (limited to 'termkey.h.in')
-rw-r--r-- | termkey.h.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/termkey.h.in b/termkey.h.in index 6c91b09..bd5187c 100644 --- a/termkey.h.in +++ b/termkey.h.in @@ -95,7 +95,8 @@ typedef enum { TERMKEY_TYPE_UNICODE, TERMKEY_TYPE_FUNCTION, TERMKEY_TYPE_KEYSYM, - TERMKEY_TYPE_MOUSE + TERMKEY_TYPE_MOUSE, + TERMKEY_TYPE_POSITION } TermKeyType; typedef enum { @@ -199,6 +200,8 @@ TermKeySym termkey_keyname2sym(TermKey *tk, const char *keyname); TermKeyResult termkey_interpret_mouse(TermKey *tk, const TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col); +TermKeyResult termkey_interpret_position(TermKey *tk, const TermKeyKey *key, int *line, int *col); + typedef enum { TERMKEY_FORMAT_LONGMOD = 1 << 0, /* Shift-... instead of S-... */ TERMKEY_FORMAT_CARETCTRL = 1 << 1, /* ^X instead of C-X */ |