From bb00cd64b1d111122d22a5bd71a8ccedc45c0484 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Fri, 10 Oct 2008 01:11:24 +0100 Subject: Added many more key symbols and names + translations from terminfo --- termkey.h | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'termkey.h') diff --git a/termkey.h b/termkey.h index 52ebc88..7febe23 100644 --- a/termkey.h +++ b/termkey.h @@ -18,14 +18,12 @@ typedef enum { TERMKEY_SYM_SPACE, TERMKEY_SYM_DEL, - // CSI keys + // Special keys TERMKEY_SYM_UP, TERMKEY_SYM_DOWN, TERMKEY_SYM_LEFT, TERMKEY_SYM_RIGHT, TERMKEY_SYM_BEGIN, - - // CSI function keys TERMKEY_SYM_FIND, TERMKEY_SYM_INSERT, TERMKEY_SYM_DELETE, @@ -35,6 +33,30 @@ typedef enum { TERMKEY_SYM_HOME, TERMKEY_SYM_END, + // Special keys from terminfo + TERMKEY_SYM_CANCEL, + TERMKEY_SYM_CLEAR, + TERMKEY_SYM_CLOSE, + TERMKEY_SYM_COMMAND, + TERMKEY_SYM_COPY, + TERMKEY_SYM_EXIT, + TERMKEY_SYM_HELP, + TERMKEY_SYM_MARK, + TERMKEY_SYM_MESSAGE, + TERMKEY_SYM_MOVE, + TERMKEY_SYM_OPEN, + TERMKEY_SYM_OPTIONS, + TERMKEY_SYM_PRINT, + TERMKEY_SYM_REDO, + TERMKEY_SYM_REFERENCE, + TERMKEY_SYM_REFRESH, + TERMKEY_SYM_REPLACE, + TERMKEY_SYM_RESTART, + TERMKEY_SYM_RESUME, + TERMKEY_SYM_SAVE, + TERMKEY_SYM_SUSPEND, + TERMKEY_SYM_UNDO, + // Numeric keypad special keys TERMKEY_SYM_KP0, TERMKEY_SYM_KP1, -- cgit v1.2.3-70-g09d2