HP-UX Reference (11i v1 05/09) - 5 Miscellaneous Topics (vol 9)

c
curses(5) curses(5)
(CURSES)
Key Codes
The following symbolic constants representing function key values are defined:
Key Code Description
KEY_CODE_YES Used to indicate that a wchar_t variable contains a key code
KEY_BREAK Break key
KEY_DOWN Down arrow key
KEY_UP Up arrow key
KEY_LEFT Left arrow key
KEY_RIGHT Right arrow key
KEY_HOME Home key
KEY_BACKSPACE Backspace
KEY_F0 Function keys; space for 64 keys is reserved
KEY_F(n)For0 n 63
KEY_DL Delete line
KEY_IL Insert line
KEY_DC Delete character
KEY_IC Insert char or enter insert mode
KEY_EIC Exit insert char mode
KEY_CLEAR Clear screen
KEY_EOS Clear to end of screen
KEY_EOL Clear to end of line
KEY_SF Scroll 1 line forward
KEY_SR Scroll 1 line backward (reverse)
KEY_NPAGE Next page
KEY_PPAGE Previous page
KEY_STAB Set tab
KEY_CTAB Clear tab
KEY_CATAB Clear all tabs
KEY_ENTER Enter or send
KEY_SRESET Soft (partial) reset
KEY_RESET Reset or hard reset
KEY_PRINT Print or copy
KEY_LL Home down or bottom
KEY_A1 Upper left of keypad
KEY_A3 Upper right of keypad
KEY_B2 Center of keypad
KEY_C1 Lower left of keypad
KEY_C3 Lower right of keypad
The virtual keypad is a 3-by-3 keypad arranged as follows:
A1 UP A3
LEFT B2 RIGHT
C1 DOWN C3
Each legend, such as A1, corresponds to a symbolic constant for a key code from the preceding table, such
as KEY_A1. The following symbolic constants representing function key values are also defined:
Key Code Description
KEY_BTAB Back tab key
KEY_BEG Beginning key
KEY_CANCEL Cancel key
KEY_CLOSE Close key
KEY_COMMAND Cmd (command) key
KEY_COPY Copy key
KEY_CREATE Create key
KEY_END End key
KEY_EXIT Exit key
KEY_FIND Find key
HP-UX 11i Version 1: September 2005 4 Hewlett-Packard Company Section 531