
[A-4] キー定義テーブル

/*----------------------------------------------------------------------
 *
 *	Function and Keypad Key Definitions.
 *	Many are just for compatibility.
 *
 */
 KEY_MIN        0x101   /* Minimum curses key value      */
 KEY_BREAK      0x101   /* Not on PC KBD                 */
 KEY_DOWN       0x102   /* Down arrow key                */
 KEY_UP         0x103   /* Up arrow key                  */
 KEY_LEFT       0x104   /* Left arrow key                */
 KEY_RIGHT      0x105   /* Right arrow key               */
 KEY_HOME       0x106   /* home key                      */
 KEY_BACKSPACE  0x107   /* not on pc                     */
 KEY_F0         0x108   /* function keys. space for      */
 KEY_F(n)  (KEY_F0+(n)) /* 64 keys are reserved.         */
 KEY_DL         0x148   /* delete line                   */
 KEY_IL         0x149   /* insert line                   */
 KEY_DC         0x14a   /* delete character              */
 KEY_IC         0x14b   /* insert char or enter ins mode */
 KEY_EIC        0x14c   /* exit insert char mode         */
 KEY_CLEAR      0x14d   /* clear screen                  */
 KEY_EOS        0x14e   /* clear to end of screen        */
 KEY_EOL        0x14f   /* clear to end of line          */
 KEY_SF         0x150   /* scroll 1 line forward         */
 KEY_SR         0x151   /* scroll 1 line back (reverse)  */
 KEY_NPAGE      0x152   /* next page                     */
 KEY_PPAGE      0x153   /* previous page                 */
 KEY_STAB       0x154   /* set tab                       */
 KEY_CTAB       0x155   /* clear tab                     */
 KEY_CATAB      0x156   /* clear all tabs                */
 KEY_ENTER      0x157   /* enter or send (unreliable)    */
 KEY_SRESET     0x158   /* soft/reset (partial/unreliable)*/
 KEY_RESET      0x159   /* reset/hard reset (unreliable) */
 KEY_PRINT      0x15a   /* print/copy                    */
 KEY_LL         0x15b   /* home down/bottom (lower left) */
 KEY_ABORT      0x15c   /* abort/terminate key (any)     */
 KEY_SHELP      0x15d   /* short help                    */
 KEY_LHELP      0x15e   /* long help                     */
 KEY_BTAB       0x15f   /* Back tab key                  */
 KEY_BEG        0x160   /* beg(inning) key               */
 KEY_CANCEL     0x161   /* cancel key                    */
 KEY_CLOSE      0x162   /* close key                     */
 KEY_COMMAND    0x163   /* cmd (command) key             */
 KEY_COPY       0x164   /* copy key                      */
 KEY_CREATE     0x165   /* create key                    */
 KEY_END        0x166   /* end key                       */
 KEY_EXIT       0x167   /* exit key                      */
 KEY_FIND       0x168   /* find key                      */
 KEY_HELP       0x169   /* help key                      */
 KEY_MARK       0x16a   /* mark key                      */
 KEY_MESSAGE    0x16b   /* message key                   */
 KEY_MOVE       0x16c   /* move key                      */
 KEY_NEXT       0x16d   /* next object key               */
 KEY_OPEN       0x16e   /* open key                      */
 KEY_OPTIONS    0x16f   /* options key                   */
 KEY_PREVIOUS   0x170   /* previous object key           */
 KEY_REDO       0x171   /* redo key                      */
 KEY_REFERENCE  0x172   /* ref(erence) key               */
 KEY_REFRESH    0x173   /* refresh key                   */
 KEY_REPLACE    0x174   /* replace key                   */
 KEY_RESTART    0x175   /* restart key                   */
 KEY_RESUME     0x176   /* resume key                    */
 KEY_SAVE       0x177   /* save key                      */
 KEY_SBEG       0x178   /* shifted beginning key         */
 KEY_SCANCEL    0x179   /* shifted cancel key            */
 KEY_SCOMMAND   0x17a   /* shifted command key           */
 KEY_SCOPY      0x17b   /* shifted copy key              */
 KEY_SCREATE    0x17c   /* shifted create key            */
 KEY_SDC        0x17d   /* shifted delete char key       */
 KEY_SDL        0x17e   /* shifted delete line key       */
 KEY_SELECT     0x17f   /* select key                    */
 KEY_SEND       0x180   /* shifted end key               */
 KEY_SEOL       0x181   /* shifted clear line key        */
 KEY_SEXIT      0x182   /* shifted exit key              */
 KEY_SFIND      0x183   /* shifted find key              */
 KEY_SHOME      0x184   /* shifted home key              */
 KEY_SIC        0x185   /* shifted input key             */
 KEY_SLEFT      0x187   /* shifted left arrow key        */
 KEY_SMESSAGE   0x188   /* shifted message key           */
 KEY_SMOVE      0x189   /* shifted move key              */
 KEY_SNEXT      0x18a   /* shifted next key              */
 KEY_SOPTIONS   0x18b   /* shifted options key           */
 KEY_SPREVIOUS  0x18c   /* shifted prev key              */
 KEY_SPRINT     0x18d   /* shifted print key             */
 KEY_SREDO      0x18e   /* shifted redo key              */
 KEY_SREPLACE   0x18f   /* shifted replace key           */
 KEY_SRIGHT     0x190   /* shifted right arrow           */
 KEY_SRSUME     0x191   /* shifted resume key            */
 KEY_SSAVE      0x192   /* shifted save key              */
 KEY_SSUSPEND   0x193   /* shifted suspend key           */
 KEY_SUNDO      0x194   /* shifted undo key              */
 KEY_SUSPEND    0x195   /* suspend key                   */
 KEY_UNDO       0x196   /* undo key                      */

 KEY_A1          449   /* upper left on Virtual keypad  */
 KEY_A2          450   /* upper middle on Virt. keypad  */
 KEY_A3          451   /* upper right on Vir. keypad    */
 KEY_B1          452   /* middle left on Virt. keypad   */
 KEY_B2          453   /* center on Virt. keypad        */
 KEY_B3          454   /* middle right on Vir. keypad   */
 KEY_C1          455   /* lower left on Virt. keypad    */
 KEY_C2          456   /* lower middle on Virt. keypad  */
 KEY_C3          457   /* lower right on Vir. keypad    */
 PADSLASH        458   /* slash on keypad               */
 PADENTER        459   /* enter on keypad               */
 CTL_PADENTER    460   /* ctl-enter on keypad           */
 ALT_PADENTER    461   /* alt-enter on keypad           */
 PADSTOP         462   /* stop on keypad                */
 PADSTAR         463   /* star on keypad                */
 PADMINUS        464   /* minus on keypad               */
 PADPLUS         465   /* plus on keypad                */
 CTL_PADSTOP     466   /* ctl-stop on keypad            */
 CTL_PADCENTER   467   /* ctl-enter on keypad           */
 CTL_PADPLUS     468   /* ctl-plus on keypad            */
 CTL_PADMINUS    469   /* ctl-minus on keypad           */
 CTL_PADSLASH    470   /* ctl-slash on keypad           */
 CTL_PADSTAR     471   /* ctl-star on keypad            */
 ALT_PADPLUS     472   /* alt-plus on keypad            */
 ALT_PADMINUS    473   /* alt-minus on keypad           */
 ALT_PADSLASH    474   /* alt-slash on keypad           */
 ALT_PADSTAR     475   /* alt-star on keypad            */
 ALT_PADSTOP     476   /* alt-star on keypad            */
 CTL_INS         477   /* ctl-insert                    */
 ALT_DEL         478   /* alt-delete                    */
 ALT_INS         479   /* alt-insert                    */
 CTL_UP          480   /* ctl-up arrow                  */
 CTL_DOWN        481   /* ctl-down arrow                */
 CTL_TAB         482   /* ctl-tab                       */
 ALT_TAB         483   /* alt-tab                       */
 ALT_MINUS       484   /* alt-minus                     */
 ALT_EQUAL       485   /* alt-equal                     */
 ALT_HOME        486   /* alt-home                      */
 ALT_PGUP        487   /* alt-pgup                      */
 ALT_PGDN        488   /* alt-pgdn                      */
 ALT_END         489   /* alt-end                       */
 ALT_UP          490   /* alt-up arrow                  */
 ALT_DOWN        491   /* alt-down arrow                */
 ALT_RIGHT       492   /* alt-right arrow               */
 ALT_LEFT        493   /* alt-left arrow                */
 ALT_ENTER       494   /* alt-enter                     */
 ALT_ESC         495   /* alt-escape                    */
 ALT_BQUOTE      496   /* alt-back quote（漢字変換キー）*/
 ALT_LBRACKET    497   /* alt-left bracket              */
 ALT_RBRACKET    498   /* alt-right bracket             */
 ALT_SEMICOLON   499   /* alt-semi-colon                */
 ALT_FQUOTE      500   /* alt-forward quote             */
 ALT_COMMA       501   /* alt-comma                     */
 ALT_STOP        502   /* alt-stop                      */
 ALT_FSLASH      503   /* alt-forward slash             */
 ALT_BKSP        504   /* alt-backspace                 */
 CTL_BKSP        505   /* ctl-backspace                 */
 PAD0            506   /* ctl-keypad 0                  */
 CTL_PAD0        507   /* ctl-keypad 0                  */
 CTL_PAD1        508   /* ctl-keypad 1                  */
 CTL_PAD2        509   /* ctl-keypad 2                  */
 CTL_PAD3        510   /* ctl-keypad 3                  */
 CTL_PAD4        511   /* ctl-keypad 4                  */
 CTL_PAD5        512   /* ctl-keypad 5                  */
 CTL_PAD6        513   /* ctl-keypad 6                  */
 CTL_PAD7        514   /* ctl-keypad 7                  */
 CTL_PAD8        515   /* ctl-keypad 8                  */
 CTL_PAD9        516   /* ctl-keypad 9                  */
 ALT_PAD0        517   /* ctl-keypad 0                  */
 ALT_PAD1        518   /* ctl-keypad 1                  */
 ALT_PAD2        519   /* ctl-keypad 2                  */
 ALT_PAD3        520   /* ctl-keypad 3                  */
 ALT_PAD4        521   /* ctl-keypad 4                  */
 ALT_PAD5        522   /* ctl-keypad 5                  */
 ALT_PAD6        523   /* ctl-keypad 6                  */
 ALT_PAD7        524   /* ctl-keypad 7                  */
 ALT_PAD8        525   /* ctl-keypad 8                  */
 ALT_PAD9        526   /* ctl-keypad 9                  */
 CTL_DEL         527   /* clt-delete                    */
 ALT_BSLASH      528   /* alt-back slash                */
 CTL_ENTER       529   /* ctl-enter                     */
 KEY_MOUSE       530   /* "mouse" key                   */
 KEY_MAX         KEY_MOUSE  /* Maximum curses key         */

