Also handle CSI R; position report replies to CSI 6n

This commit is contained in:
Paul LeoNerd Evans
2012-04-24 17:27:48 +01:00
parent 6645ee9718
commit f5cbf9eb57
4 changed files with 76 additions and 1 deletions

View File

@@ -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 */