diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-10 20:39:22 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-10 20:39:22 +0000 |
commit | 0962ee4f85decab16bef85f467e79d163db9bbb3 (patch) | |
tree | 13147b569c689a78b5da7e29e5d07ee564c06af5 | |
parent | 14987e458cdec59349974c3cc838a7308833a826 (diff) | |
download | termo-0962ee4f85decab16bef85f467e79d163db9bbb3.tar.gz termo-0962ee4f85decab16bef85f467e79d163db9bbb3.tar.xz termo-0962ee4f85decab16bef85f467e79d163db9bbb3.zip |
Recognise full CSIfuncs list of F1 to F20 keys
-rw-r--r-- | termkey.c | 12 | ||||
-rw-r--r-- | termkey.h | 8 |
2 files changed, 20 insertions, 0 deletions
@@ -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; } @@ -45,6 +45,14 @@ typedef enum { TERMKEY_SYM_F10, TERMKEY_SYM_F11, TERMKEY_SYM_F12, + TERMKEY_SYM_F13, + TERMKEY_SYM_F14, + TERMKEY_SYM_F15, + TERMKEY_SYM_F16, + TERMKEY_SYM_F17, + TERMKEY_SYM_F18, + TERMKEY_SYM_F19, + TERMKEY_SYM_F20, // Numeric keypad special keys TERMKEY_SYM_KP0, |