Recognise full CSIfuncs list of F1 to F20 keys

This commit is contained in:
Paul LeoNerd Evans 2008-02-10 20:39:22 +00:00
parent 14987e458c
commit 0962ee4f85
2 changed files with 20 additions and 0 deletions

View File

@ -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;
}

View File

@ -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,