1: /* $Header: lk201.h,v 10.2 86/02/01 16:21:08 tony Rel $ */ 2: /* 3: * The Sun X drivers are a product of Sun Microsystems, Inc. and are provided 4: * for unrestricted use provided that this legend is included on all tape 5: * media and as a part of the software program in whole or part. Users 6: * may copy or modify these drivers without charge, but are not authorized 7: * to license or distribute them to anyone else except as part of a product or 8: * program developed by the user. 9: * 10: * THE SUN X DRIVERS ARE PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND 11: * INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A 12: * PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE 13: * PRACTICE. 14: * 15: * The Sun X Drivers are provided with no support and without any obligation 16: * on the part of Sun Microsystems, Inc. to assist in their use, correction, 17: * modification or enhancement. 18: * 19: * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 20: * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THE SUN X 21: * DRIVERS OR ANY PART THEREOF. 22: * 23: * In no event will Sun Microsystems, Inc. be liable for any lost revenue 24: * or profits or other special, indirect and consequential damages, even if 25: * Sun has been advised of the possibility of such damages. 26: * 27: * Sun Microsystems, Inc. 28: * 2550 Garcia Avenue 29: * Mountain View, California 94043 30: */ 31: 32: /*- 33: * Copyright (c) 1986 by Sun Microsystems, Inc. 34: * 35: * @(#)lk201.h 2.1 86/01/28 36: * 37: */ 38: 39: /* 40: * Bogus mapping to the LK201 keycodes. This is really squalid. 41: */ 42: static u_short LK201[] = { 43: 0324|ControlMask, /* 000 nul */ 44: 0302|ControlMask, /* 001 soh */ 45: 0331|ControlMask, /* 002 stx */ 46: 0316|ControlMask, /* 003 etx */ 47: 0315|ControlMask, /* 004 eot */ 48: 0314|ControlMask, /* 005 enq */ 49: 0322|ControlMask, /* 006 ack */ 50: 0330|ControlMask, /* 007 bel */ 51: 0335|ControlMask, /* 010 bs */ 52: 0276|ControlMask, /* 011 ht */ 53: 0342|ControlMask, /* 012 nl */ 54: 0347|ControlMask, /* 013 vt */ 55: 0354|ControlMask, /* 014 np */ 56: 0275|ControlMask, /* 015 cr */ 57: 0336|ControlMask, /* 016 so */ 58: 0353|ControlMask, /* 017 si */ 59: 0360|ControlMask, /* 020 dle */ 60: 0301|ControlMask, /* 021 dc1 */ 61: 0321|ControlMask, /* 022 dc2 */ 62: 0307|ControlMask, /* 023 dc3 */ 63: 0327|ControlMask, /* 024 dc4 */ 64: 0341|ControlMask, /* 025 nak */ 65: 0323|ControlMask, /* 026 syn */ 66: 0306|ControlMask, /* 027 etb */ 67: 0310|ControlMask, /* 030 can */ 68: 0334|ControlMask, /* 031 em */ 69: 0303|ControlMask, /* 032 sub */ 70: 0372|ControlMask, /* 033 esc */ 71: 0367|ControlMask, /* 034 fs */ 72: 0366|ControlMask, /* 035 gs */ 73: 0277|ControlMask, /* 036 rs */ 74: 0371|ControlMask, /* 037 us */ 75: 0324, /* 040 sp */ 76: 0300|ShiftMask, /* 041 ! */ 77: 0373|ShiftMask, /* 042 " */ 78: 0313|ShiftMask, /* 043 # */ 79: 0320|ShiftMask, /* 044 $ */ 80: 0326|ShiftMask, /* 045 % */ 81: 0340|ShiftMask, /* 046 & */ 82: 0373, /* 047 ' */ 83: 0352|ShiftMask, /* 050 ( */ 84: 0357|ShiftMask, /* 051 ) */ 85: 0345|ShiftMask, /* 052 * */ 86: 0365|ShiftMask, /* 053 + */ 87: 0350, /* 054 , */ 88: 0371, /* 055 - */ 89: 0355, /* 056 . */ 90: 0363, /* 057 / */ 91: 0357, /* 060 0 */ 92: 0300, /* 061 1 */ 93: 0305, /* 062 2 */ 94: 0313, /* 063 3 */ 95: 0320, /* 064 4 */ 96: 0326, /* 065 5 */ 97: 0333, /* 066 6 */ 98: 0340, /* 067 7 */ 99: 0345, /* 070 8 */ 100: 0352, /* 071 9 */ 101: 0362|ShiftMask, /* 072 : */ 102: 0362, /* 073 ; */ 103: 0350|ShiftMask, /* 074 < */ 104: 0365, /* 075 = */ 105: 0355|ShiftMask, /* 076 > */ 106: 0363|ShiftMask, /* 077 ? */ 107: 0305|ShiftMask, /* 100 @ */ 108: 0302|ShiftMask, /* 101 A */ 109: 0331|ShiftMask, /* 102 B */ 110: 0316|ShiftMask, /* 103 C */ 111: 0315|ShiftMask, /* 104 D */ 112: 0314|ShiftMask, /* 105 E */ 113: 0322|ShiftMask, /* 106 F */ 114: 0330|ShiftMask, /* 107 G */ 115: 0335|ShiftMask, /* 110 H */ 116: 0346|ShiftMask, /* 111 I */ 117: 0342|ShiftMask, /* 112 J */ 118: 0347|ShiftMask, /* 113 K */ 119: 0354|ShiftMask, /* 114 L */ 120: 0343|ShiftMask, /* 115 M */ 121: 0336|ShiftMask, /* 116 N */ 122: 0353|ShiftMask, /* 117 O */ 123: 0360|ShiftMask, /* 120 P */ 124: 0301|ShiftMask, /* 121 Q */ 125: 0321|ShiftMask, /* 122 R */ 126: 0307|ShiftMask, /* 123 S */ 127: 0327|ShiftMask, /* 124 T */ 128: 0341|ShiftMask, /* 125 U */ 129: 0323|ShiftMask, /* 126 V */ 130: 0306|ShiftMask, /* 127 W */ 131: 0310|ShiftMask, /* 130 X */ 132: 0334|ShiftMask, /* 131 Y */ 133: 0303|ShiftMask, /* 132 Z */ 134: 0372, /* 133 [ */ 135: 0367, /* 134 \ */ 136: 0366, /* 135 ] */ 137: 0333|ShiftMask, /* 136 ^ */ 138: 0371|ShiftMask, /* 137 _ */ 139: 0277, /* 140 ` */ 140: 0302, /* 141 a */ 141: 0331, /* 142 b */ 142: 0316, /* 143 c */ 143: 0315, /* 144 d */ 144: 0314, /* 145 e */ 145: 0322, /* 146 f */ 146: 0330, /* 147 g */ 147: 0335, /* 150 h */ 148: 0346, /* 151 i */ 149: 0342, /* 152 j */ 150: 0347, /* 153 k */ 151: 0354, /* 154 l */ 152: 0343, /* 155 m */ 153: 0336, /* 156 n */ 154: 0353, /* 157 o */ 155: 0360, /* 160 p */ 156: 0301, /* 161 q */ 157: 0321, /* 162 r */ 158: 0307, /* 163 s */ 159: 0327, /* 164 t */ 160: 0341, /* 165 u */ 161: 0323, /* 166 v */ 162: 0306, /* 167 w */ 163: 0310, /* 170 x */ 164: 0334, /* 171 y */ 165: 0303, /* 172 z */ 166: 0372|ShiftMask, /* 173 { */ 167: 0367|ShiftMask, /* 174 | */ 168: 0366|ShiftMask, /* 175 } */ 169: 0277|ShiftMask, /* 176 ~ */ 170: 0274, /* 177 del */ 171: };