aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-10 20:39:22 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-10 20:39:22 +0000
commit0962ee4f85decab16bef85f467e79d163db9bbb3 (patch)
tree13147b569c689a78b5da7e29e5d07ee564c06af5 /termkey.c
parent14987e458cdec59349974c3cc838a7308833a826 (diff)
downloadtermo-0962ee4f85decab16bef85f467e79d163db9bbb3.tar.gz
termo-0962ee4f85decab16bef85f467e79d163db9bbb3.tar.xz
termo-0962ee4f85decab16bef85f467e79d163db9bbb3.zip
Recognise full CSIfuncs list of F1 to F20 keys
Diffstat (limited to 'termkey.c')
-rw-r--r--termkey.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index 2975f5a..2be6b8c 100644
--- a/termkey.c
+++ b/termkey.c
@@ -159,6 +159,10 @@ termkey_t *termkey_new_full(int fd, int flags, size_t buffsize, int waittime)
termkey_register_csifunc(tk, TERMKEY_SYM_END, 4, "End");
termkey_register_csifunc(tk, TERMKEY_SYM_PAGEUP, 5, "PageUp");
termkey_register_csifunc(tk, TERMKEY_SYM_PAGEDOWN, 6, "PageDown");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F1, 11, "F1");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F2, 12, "F2");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F3, 13, "F3");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F4, 14, "F4");
termkey_register_csifunc(tk, TERMKEY_SYM_F5, 15, "F5");
termkey_register_csifunc(tk, TERMKEY_SYM_F6, 17, "F6");
termkey_register_csifunc(tk, TERMKEY_SYM_F7, 18, "F7");
@@ -167,6 +171,14 @@ termkey_t *termkey_new_full(int fd, int flags, size_t buffsize, int waittime)
termkey_register_csifunc(tk, TERMKEY_SYM_F10, 21, "F10");
termkey_register_csifunc(tk, TERMKEY_SYM_F11, 23, "F11");
termkey_register_csifunc(tk, TERMKEY_SYM_F12, 24, "F12");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F13, 25, "F13");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F14, 26, "F14");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F15, 28, "F15");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F16, 29, "F16");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F17, 31, "F17");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F18, 32, "F18");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F19, 33, "F19");
+ termkey_register_csifunc(tk, TERMKEY_SYM_F20, 34, "F20");
return tk;
}