aboutsummaryrefslogtreecommitdiff
path: root/termkey.h.in
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-11-30 14:35:23 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-11-30 14:35:23 +0000
commit7b3dc4be71e9c611bc4a6b191264f99eb642d44c (patch)
tree19aea2fd55a00f6d0fbaf252e327bc2b6850eea5 /termkey.h.in
parentd241d6216abcf3607a72e53b18f2d0b5882bb164 (diff)
downloadtermo-7b3dc4be71e9c611bc4a6b191264f99eb642d44c.tar.gz
termo-7b3dc4be71e9c611bc4a6b191264f99eb642d44c.tar.xz
termo-7b3dc4be71e9c611bc4a6b191264f99eb642d44c.zip
Return a real key type for unrecognised CSI sequences; allow accessing them by termkey_interpret_csi()
Diffstat (limited to 'termkey.h.in')
-rw-r--r--termkey.h.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/termkey.h.in b/termkey.h.in
index bd5187c..754700f 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -96,7 +96,10 @@ typedef enum {
TERMKEY_TYPE_FUNCTION,
TERMKEY_TYPE_KEYSYM,
TERMKEY_TYPE_MOUSE,
- TERMKEY_TYPE_POSITION
+ TERMKEY_TYPE_POSITION,
+ /* add other recognised types here */
+
+ TERMKEY_TYPE_UNKNOWN_CSI = -1
} TermKeyType;
typedef enum {
@@ -202,6 +205,8 @@ TermKeyResult termkey_interpret_mouse(TermKey *tk, const TermKeyKey *key, TermKe
TermKeyResult termkey_interpret_position(TermKey *tk, const TermKeyKey *key, int *line, int *col);
+TermKeyResult termkey_interpret_csi(TermKey *tk, const TermKeyKey *key, long args[], size_t *nargs, unsigned long *cmd);
+
typedef enum {
TERMKEY_FORMAT_LONGMOD = 1 << 0, /* Shift-... instead of S-... */
TERMKEY_FORMAT_CARETCTRL = 1 << 1, /* ^X instead of C-X */