/* UNISRC_ID: %W% %E% */ /********************************************************************* * file: keycode.h * part #: * internal sequence #: * * ************************************************************ * * " c Copyright Hewlett-Packard Company, 1984.* All * * * rights are reserved. Copying or other reproduction * * * of this program except for archival purposes is * * * prohibited without the prior written consent of * * * Hewlett-Packard Company." * * ************************************************************ * * This file contains definitions for use with the keyboard. * They are the defines of the function codes generated by the * keyboard driver. * * Pisces Q-DOS project * Karen Helt PCD * ---------------------------------------------------- * initial 5/13/83 * */ #define CHAR_KEY 0x100 #define NO_FUNC -1 #define CURS_RT_KEY 0x100 /* start of funcs encoded by term0 */ #define CURS_DN_KEY 0x101 #define CURS_LF_KEY 0x102 #define CURS_UP_KEY 0x103 #define CURS_UP_RT_KEY 0x104 #define CURS_UP_LF_KEY 0x105 #define CURS_DN_LF_KEY 0x106 #define CURS_DN_RT_KEY 0x107 #define ROLL_RT_KEY 0x108 #define ROLL_DN_KEY 0x109 #define ROLL_LF_KEY 0x10A #define ROLL_UP_KEY 0x10B #define ROLL_UP_RT_KEY 0x10C #define ROLL_UP_LF_KEY 0x10D #define ROLL_DN_LF_KEY 0x10E #define ROLL_DN_RT_KEY 0x10F #define TAB_KEY 0x110 #define BACKTAB_KEY 0x111 #define NEXT_KEY 0x112 #define PREV_KEY 0x113 #define HOME_UP_KEY 0x114 #define HOME_DN_KEY 0x115 #define DEL_CHAR_KEY 0x116 #define INSERT_CHAR_KEY 0x117 #define DEL_LINE_KEY 0x118 #define INSERT_LINE_KEY 0x119 #define CLR_DISP_KEY 0x11A #define CLR_LINE_KEY 0x11B #define CLR_ALL_DISP_KEY 0x11C #define CLR_ALL_LINE_KEY 0x11D #define BS_KEY 0x11E /*BS_KEY is last func encoded by term0*/ #define BLANK_1_KEY 0x11F #define BLANK_2_KEY 0x120 #define BLANK_3_KEY 0x121 #define BLANK_4_KEY 0x122 #define BLANK_5_KEY 0x123 #define BLANK_6_KEY 0x124 #define BLANK_7_KEY 0x125 #define BLANK_8_KEY 0x126 #define BUTTON_1_KEY 0x127 #define BUTTON_2_KEY 0x128 #define BUTTON_3_KEY 0x129 #define BUTTON_4_KEY 0x12A #define BUTTON_5_KEY 0x12B #define BUTTON_6_KEY 0x12C #define BUTTON_7_KEY 0x12D #define BUTTON_8_KEY 0x12E #define BUTTON_1_UP_KEY 0x12F #define BUTTON_2_UP_KEY 0x130 #define BUTTON_3_UP_KEY 0x131 #define BUTTON_4_UP_KEY 0x132 #define BUTTON_5_UP_KEY 0x133 #define BUTTON_6_UP_KEY 0x134 #define BUTTON_7_UP_KEY 0x135 #define BUTTON_8_UP_KEY 0x136 #define BREAK_KEY 0x137 #define RESET_KEY 0x138 #define STOP_KEY 0x139 #define SH_STOP_KEY 0x13A #define USER_KEY 0x13B #define SYS_KEY 0x13C #define PRINT_KEY 0x13D #define ENTER_KEY 0x13E /* ENTER_KEY + 1 = RETURN_KEY */ #define RETURN_KEY 0x13F /* RETURN_KEY + 1 = F1_KEY */ #define F1_KEY 0x140 /* F1_KEY | 0x010 = WF1_KEY */ #define F2_KEY 0x141 /* F1_KEY - F16_KEY contiguous */ #define F3_KEY 0x142 #define F4_KEY 0x143 #define F5_KEY 0x144 #define F6_KEY 0x145 #define F7_KEY 0x146 #define F8_KEY 0x147 #define F9_KEY 0x148 #define F10_KEY 0x149 #define F11_KEY 0x14A #define F12_KEY 0x14B #define F13_KEY 0x14C #define F14_KEY 0x14D #define F15_KEY 0x14E #define F16_KEY 0x14F #define WF1_KEY 0x150 /* WF1_KEY & 0xFEF = F1_KEY */ #define WF2_KEY 0x151 /* WF1_KEY - WF16_KEY contiguous */ #define WF3_KEY 0x152 #define WF4_KEY 0x153 #define WF5_KEY 0x154 #define WF6_KEY 0x155 #define WF7_KEY 0x156 #define WF8_KEY 0x157 #define WF9_KEY 0x158 #define WF10_KEY 0x159 #define WF11_KEY 0x15A #define WF12_KEY 0x15B #define WF13_KEY 0x15C #define WF14_KEY 0x15D #define WF15_KEY 0x15E #define WF16_KEY 0x15F #define MENU_KEY 0x160 #define SELECT_KEY 0x161 #define SH_SELECT_KEY 0x162 #define MENU_UP_KEY 0x163 #define SELECT_UP_KEY 0x164 #define SH_SELECT_UP_KEY 0x165 #define CURS_REP 0x166 #define ROLL_REP 0x167 #define REXTEND_CHAR_KEY 0x168 #define LEXTEND_CHAR_KEY 0x169 #define RSHIFT_KEY 0x16A #define LSHIFT_KEY 0x16B #define CONTROL_KEY 0x16C #define CAPS_KEY 0x16D #define ALT_KEY 0x16E #define TO_ALT_KEY 0x16F #define TO_ROMAN_KEY 0x170