aboutsummaryrefslogtreecommitdiff
path: root/termkey.h.in
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-04-01 13:26:54 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-04-01 13:26:54 +0100
commitdbb13defb7ab00b1f4e801f3daab7dd1a3744ac0 (patch)
tree4d7bd461bcc48380b3c353ac7b7cec2ed22d313b /termkey.h.in
parent6adb2324f5568c3045e97c1712a1bc6e3f9220cc (diff)
downloadtermo-dbb13defb7ab00b1f4e801f3daab7dd1a3744ac0.tar.gz
termo-dbb13defb7ab00b1f4e801f3daab7dd1a3744ac0.tar.xz
termo-dbb13defb7ab00b1f4e801f3daab7dd1a3744ac0.zip
Provide a termkey_lookup_keyname that can do partial buffer parsing
Diffstat (limited to 'termkey.h.in')
-rw-r--r--termkey.h.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/termkey.h.in b/termkey.h.in
index 3c0665f..f296c58 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -171,11 +171,12 @@ TermKeyResult termkey_advisereadable(TermKey *tk);
TermKeySym termkey_register_keyname(TermKey *tk, TermKeySym sym, const char *name);
const char *termkey_get_keyname(TermKey *tk, TermKeySym sym);
-
-TermKeyResult termkey_interpret_mouse(TermKey *tk, TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col);
+char *termkey_lookup_keyname(TermKey *tk, const char *str, TermKeySym *sym);
TermKeySym termkey_keyname2sym(TermKey *tk, const char *keyname);
+TermKeyResult termkey_interpret_mouse(TermKey *tk, TermKeyKey *key, TermKeyMouseEvent *event, int *button, 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