From 7b3dc4be71e9c611bc4a6b191264f99eb642d44c Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Fri, 30 Nov 2012 14:35:23 +0000 Subject: Return a real key type for unrecognised CSI sequences; allow accessing them by termkey_interpret_csi() --- termkey.h.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'termkey.h.in') 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 */ -- cgit v1.2.3