|
|
1.1 ! root 1: /* $Header: keymatch.h,v 10.1 86/11/19 10:45:43 jg Exp $ */ ! 2: /* Copyright 1985 Massachusetts Institute of Technology */ ! 3: ! 4: /* keymatch.h - Table to match key codes from RTPC to X default (DEC) codes ! 5: * ! 6: * Author: ! 7: * ! 8: * Scott Bates ! 9: * Brown University ! 10: * IRIS, Box 1946 ! 11: * Providence, RI 02912 ! 12: * ! 13: * Copyright (c) 1986 Brown University ! 14: * ! 15: * Permission to use, copy, modify and distribute this software and its ! 16: * documentation for any purpose and without fee is hereby granted, provided ! 17: * that the above copyright notice appear in all copies, and that both ! 18: * that copyright notice and this permission notice appear in supporting ! 19: * documentation, and that the name of Brown University not be used in ! 20: * advertising or publicity pertaining to distribution of the software ! 21: * without specific, written prior permission. Brown University makes no ! 22: * representations about the suitability of this software for any purpose. ! 23: * It is provided "as-is" without express or implied warranty. ! 24: */ ! 25: ! 26: unsigned char keymatch [] = ! 27: { ! 28: /* IBM key code X Key Code */ ! 29: /* 0x00 */ 0000, ! 30: /* 0x01 */ 0001, ! 31: /* 0x02 */ 0002, ! 32: /* 0x03 */ 0003, ! 33: /* 0x04 */ 0004, ! 34: /* 0x05 */ 0005, ! 35: /* 0x06 */ 0006, ! 36: /* 0x07 */ 0126, /* F1 */ ! 37: /* 0x08 */ 0161, /* ESC */ ! 38: /* 0x09 */ 0007, ! 39: /* 0x0A */ 0010, ! 40: /* 0x0B */ 0011, ! 41: /* 0x0C */ 0012, ! 42: /* 0x0D */ 0276, /* Tab */ ! 43: /* 0x0E */ 0277, /* ` */ ! 44: /* 0x0F */ 0127, /* F2 */ ! 45: /* 0x10 */ 0013, ! 46: /* 0x11 */ 0257, /* Ctrl */ ! 47: /* 0x12 */ 0256, /* SHIFT1 -> Shift/SHFT */ ! 48: /* 0x13 */ 0311, /* ????? */ ! 49: /* 0x14 */ 0260, /* Caps Lock -> Lock */ ! 50: /* 0x15 */ 0301, /* q */ ! 51: /* 0x16 */ 0300, /* 1 * ! 52: /* 0x17 */ 0130, /* F3 */ ! 53: /* 0x18 */ 0017, ! 54: /* 0x19 */ 0261, /* ALT1 -> Compose Character/SYMBOL */ ! 55: /* 0x1A */ 0303, /* z */ ! 56: /* 0x1B */ 0307, /* s */ ! 57: /* 0x1C */ 0302, /* a */ ! 58: /* 0x1D */ 0306, /* w */ ! 59: /* 0x1E */ 0305, /* 2 */ ! 60: /* 0x1F */ 0131, /* F4 */ ! 61: /* 0x20 */ 0021, ! 62: /* 0x21 */ 0316, /* c */ ! 63: /* 0x22 */ 0310, /* x */ ! 64: /* 0x23 */ 0315, /* d */ ! 65: /* 0x24 */ 0314, /* e */ ! 66: /* 0x25 */ 0320, /* 4 */ ! 67: /* 0x26 */ 0313, /* 3 */ ! 68: /* 0x27 */ 0132, /* F5 */ ! 69: /* 0x28 */ 0022, ! 70: /* 0x29 */ 0324, /* Space */ ! 71: /* 0x2A */ 0323, /* v */ ! 72: /* 0x2B */ 0322, /* f */ ! 73: /* 0x2C */ 0327, /* t */ ! 74: /* 0x2D */ 0321, /* r */ ! 75: /* 0x2E */ 0326, /* 5 */ ! 76: /* 0x2F */ 0144, /* F6 */ ! 77: /* 0x30 */ 0023, ! 78: /* 0x31 */ 0336, /* n */ ! 79: /* 0x32 */ 0331, /* b */ ! 80: /* 0x33 */ 0335, /* h */ ! 81: /* 0x34 */ 0330, /* g */ ! 82: /* 0x35 */ 0334, /* y */ ! 83: /* 0x36 */ 0333, /* 6 */ ! 84: /* 0x37 */ 0145, /* F7 */ ! 85: /* 0x38 */ 0024, ! 86: /* 0x39 */ 0261, /* ALT2 -> Compose Character/SYMBOL */ ! 87: /* 0x3A */ 0343, /* m */ ! 88: /* 0x3B */ 0342, /* j */ ! 89: /* 0x3C */ 0341, /* u */ ! 90: /* 0x3D */ 0340, /* 7 */ ! 91: /* 0x3E */ 0345, /* 8 */ ! 92: /* 0x3F */ 0146, /* F8 */ ! 93: /* 0x40 */ 0026, ! 94: /* 0x41 */ 0350, /* , */ ! 95: /* 0x42 */ 0347, /* k */ ! 96: /* 0x43 */ 0346, /* i */ ! 97: /* 0x44 */ 0353, /* o */ ! 98: /* 0x45 */ 0357, /* 0 */ ! 99: /* 0x46 */ 0352, /* 9 */ ! 100: /* 0x47 */ 0147, /* F9 */ ! 101: /* 0x48 */ 0027, ! 102: /* 0x49 */ 0355, /* . */ ! 103: /* 0x4A */ 0363, /* / */ ! 104: /* 0x4B */ 0354, /* l */ ! 105: /* 0x4C */ 0362, /* ; */ ! 106: /* 0x4D */ 0360, /* p */ ! 107: /* 0x4E */ 0371, /* - */ ! 108: /* 0x4F */ 0150, /* F10 */ ! 109: /* 0x50 */ 0030, ! 110: /* 0x51 */ 0031, ! 111: /* 0x52 */ 0373, /* ' */ ! 112: /* 0x53 */ 0032, ! 113: /* 0x54 */ 0372, /* [ */ ! 114: /* 0x55 */ 0365, /* = */ ! 115: /* 0x56 */ 0164, /* F11 -> F14 */ ! 116: /* 0x57 */ 0202, /* Print Screen -> F19 */ ! 117: /* 0x58 */ 0033, ! 118: /* 0x59 */ 0256, /* SHIFT2 -> Shift/SHFT */ ! 119: /* 0x5A */ 0275, /* Return */ ! 120: /* 0x5B */ 0366, /* ] */ ! 121: /* 0x5C */ 0367, /* \ */ ! 122: /* 0x5D */ 0035, ! 123: /* 0x5E */ 0200, /* F12 -> F17 */ ! 124: /* 005F */ 0203, /* Scroll Lock -> F20 */ ! 125: /* 0x60 */ 0251, /* downarrow */ ! 126: /* 0x61 */ 0247, /* leftarrow */ ! 127: /* 0x62 */ 0201, /* Pause -> F18 */ ! 128: /* 0x63 */ 0252, /* uparrow */ ! 129: /* 0x64 */ 0274, /* delete -> back*/ ! 130: /* 0x65 */ 0175, /* end -> Do/F16 */ ! 131: /* 0x66 */ 0162, /* BS -> F12/BS*/ ! 132: /* 0x67 */ 0213, /* Insert/E2 */ ! 133: /* 0x68 */ 0037, ! 134: /* 0x69 */ 0226, /* R1 */ ! 135: /* 0x6a */ 0250, /* rightarrow */ ! 136: /* 0x6b */ 0231, /* R4 */ ! 137: /* 0x6c */ 0235, /* R7 */ ! 138: /* 0x6d */ 0217, /* Page Down -> Next Screen */ ! 139: /* 0x6e */ 0215, /* Home -> Select ??? */ ! 140: /* 0x6f */ 0216, /* Page Up -> Prev Screen */ ! 141: /* 0x70 */ 0222, /* R0 */ ! 142: /* 0x71 */ 0224, /* R. */ ! 143: /* 0x72 */ 0227, /* R2 */ ! 144: /* 0x73 */ 0232, /* R5 */ ! 145: /* 0x74 */ 0233, /* R6 */ ! 146: /* 0x75 */ 0236, /* R8 */ ! 147: /* 0x76 */ 0234, /* Num Lock -> R, ??? */ ! 148: /* 0x77 */ 0241, /* R/ -> PF1 */ ! 149: /* 0x78 */ 0041, ! 150: /* 0x79 */ 0225, /* Enter */ ! 151: /* 0x7a */ 0230, /* R3 */ ! 152: /* 0x7b */ 0042, ! 153: /* 0x7c */ 0242, /* R+ -> PF2 */ ! 154: /* 0x7d */ 0237, /* R9 */ ! 155: /* 0x7e */ 0243, /* R* -> PF3*/ ! 156: /* 0x7f */ 0043, ! 157: /* 0x80 */ 0044, ! 158: /* 0x81 */ 0045, ! 159: /* 0x82 */ 0046, ! 160: /* 0x83 */ 0047, ! 161: /* 0x84 */ 0240, /* R- */ ! 162: }; ! 163: ! 164: #define RTPC_CODES 0x84
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.