Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / atari / stand / keymaps / us / us-kbdmap.c
blob6bade996f7fe39ebaa8f520ed3566010d5c61b39
1 /* $NetBSD: us-kbdmap.c,v 1.2 2001/09/07 23:09:37 thomas Exp $ */
3 #include "../../../dev/kbdmap.h"
5 /* mode shortcuts: */
6 #define S KBD_MODE_STRING
7 #define C KBD_MODE_CAPS
8 #define K KBD_MODE_KPAD
12 | 20.June.95
13 | Abdulkareem asx@ccnet.com
15 | Changes made for the US keyboard
16 | The pipe symbol '|', the double-quote '"', the at sign, '@', the
17 | tidle '~', the backslash '\' were incompatible to the built-in
18 | keymap and therefore not available on the US keyabords.
20 | I've added the loadkmap us-map line in my /etc/rc.local file; don't
21 | know where else to put it.
26 struct kbdmap kbdmap;
27 struct kbdmap ascii_kbdmap = {
28 /* normal map */
30 /* 0x00 */ 0, 0, 0, ESC, 0, '1', 0, '2',
31 /* 0x04 */ 0, '3', 0, '4', 0, '5', 0, '6',
32 /* 0x08 */ 0, '7', 0, '8', 0, '9', 0, '0',
33 /* 0x0c */ 0, '-', 0, '=', 0, '\b', 0, '\t',
34 /* 0x10 */ C, 'q', C, 'w', C, 'e', C, 'r',
35 /* 0x14 */ C, 't', C, 'y', C, 'u', C, 'i',
36 /* 0x18 */ C, 'o', C, 'p', 0, '[', 0, ']',
37 /* 0x1c */ 0, '\r', 0, DEL, C, 'a', C, 's',
38 /* 0x20 */ C, 'd', C, 'f', C, 'g', C, 'h',
39 /* 0x24 */ C, 'j', C, 'k', C, 'l', 0, ';',
40 /* 0x28 */ 0, '\'', 0, '`', 0, 0, 0, '\\',
41 /* 0x2c */ C, 'z', C, 'x', C, 'c', C, 'v',
42 /* 0x30 */ C, 'b', C, 'n', C, 'm', 0, ',',
43 /* 0x34 */ 0, '.', 0, '/', 0, 0, 0, 0,
44 /* 0x38 */ 0, 0, 0, ' ', 0, 0, S, 0x10,
45 /* 0x3c */ S, 0x15, S, 0x1A, S, 0x1F, S, 0x24,
46 /* 0x40 */ S, 0x29, S, 0x2E, S, 0x33, S, 0x38,
47 /* 0x44 */ S, 0x3D, 0, 0, 0, 0, 0, 0,
48 /* 0x48 */ S, 0x00, 0, 0, 0, '-', S, 0x0C,
49 /* 0x4c */ 0, 0, S, 0x08, 0, '+', 0, 0,
50 /* 0x50 */ S, 0x04, 0, 0, 0, 0, 0, DEL,
51 /* 0x54 */ 0, 0, 0, 0, 0, 0, 0, 0,
52 /* 0x58 */ 0, 0, 0, 0, 0, 0, 0, 0,
53 /* 0x5c */ 0, 0, 0, 0, 0, 0, 0, 0,
54 /* 0x60 */
55 /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, '(',
56 /* 0x64 */ 0, ')', 0, '/', 0, '*', K, '7',
57 /* 0x68 */ K, '8', K, '9', K, '4', K, '5',
58 /* 0x6c */ K, '6', K, '1', K, '2', K, '3',
59 /* 0x70 */ K, '0', K, '.', K, '\r', 0, 0,
60 /* 0x74 */ 0, 0, 0, 0, 0, 0, 0, 0,
61 /* 0x78 */ 0, 0, 0, 0, 0, 0, 0, 0,
62 /* 0x7c */ 0, 0, 0, 0, 0, 0, 0, 0
64 /* shifted map */
66 /* 0x00 */ 0, 0, 0, ESC, 0, '!', 0, '@',
67 /* 0x04 */ 0, '#', 0, '$', 0, '%', 0, '^',
68 /* 0x08 */ 0, '&', 0, '*', 0, '(', 0, ')',
69 /* 0x0c */ 0, '_', 0, '+', 0, '\b', 0, '\t',
70 /* 0x10 */ C, 'Q', C, 'W', C, 'E', C, 'R',
71 /* 0x14 */ C, 'T', C, 'Y', C, 'U', C, 'I',
72 /* 0x18 */ C, 'O', C, 'P', 0, '{', 0, '}',
73 /* 0x1c */ 0, '\r', 0, 0, C, 'A', C, 'S',
74 /* 0x20 */ C, 'D', C, 'F', C, 'G', C, 'H',
75 /* 0x24 */ C, 'J', C, 'K', C, 'L', 0, ':',
76 /* 0x28 */ 0, '"', 0, '~', 0, 0, 0, '|',
77 /* 0x2c */ C, 'Z', C, 'X', C, 'C', C, 'V',
78 /* 0x30 */ C, 'B', C, 'N', C, 'M', 0, '<',
79 /* 0x34 */ 0, '>', 0, '?', 0, 0, 0, 0,
80 /* 0x38 */ 0, 0, 0, ' ', 0, 0, S, 0x5d,
81 /* 0x3c */ S, 0x63, S, 0x69, S, 0x6F, S, 0x75,
82 /* 0x40 */ S, 0x7b, S, 0x81, S, 0x87, S, 0x8d,
83 /* 0x44 */ S, 0x93, 0, 0, 0, 0, 0, 0,
84 /* 0x48 */ S, 0x47, 0, 0, 0, '-', S, 0x57,
85 /* 0x4c */ 0, 0, S, 0x51, 0, '+', 0, 0,
86 /* 0x50 */ S, 0x4c, 0, 0, 0, 0, 0, DEL,
87 /* 0x54 */ 0, 0, 0, 0, 0, 0, 0, 0,
88 /* 0x58 */ 0, 0, 0, 0, 0, 0, 0, 0,
89 /* 0x5c */ 0, 0, 0, 0, 0, 0, 0, 0,
90 /* 0x60 */
91 /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, '(',
92 /* 0x64 */ 0, ')', 0, '/', 0, '*', K, '7',
93 /* 0x68 */ K, '8', K, '9', K, '4', K, '5',
94 /* 0x6c */ K, '6', K, '1', K, '2', K, '3',
95 /* 0x70 */ K, '0', K, '.', K, '\r', 0, 0,
96 /* 0x74 */ 0, 0, 0, 0, 0, 0, 0, 0,
97 /* 0x78 */ 0, 0, 0, 0, 0, 0, 0, 0,
98 /* 0x7c */ 0, 0, 0, 0, 0, 0, 0, 0
101 /* alt map FIXME: No altmap yet.. */
103 0, 0
106 /* shift alt map FIXME: No shift altmap yet... */
108 0, 0
112 /* string table. If there's a better way to get the offsets into the
113 above table, please tell me..
115 NOTE: save yourself and others a lot of grief by *not* using
116 CSI == 0x9b, using the two-character sequence gives
117 much less trouble, especially in GNU-Emacs.. */
119 3, ESC, '[', 'A', /* 0x00: CRSR UP */
120 3, ESC, '[', 'B', /* 0x04: CRSR DOWN */
121 3, ESC, '[', 'C', /* 0x08: CRSR RIGHT */
122 3, ESC, '[', 'D', /* 0x0C: CRSR LEFT */
123 4, ESC, '[', '0', '~', /* 0x10: F1 */
124 4, ESC, '[', '1', '~', /* 0x15: F2 */
125 4, ESC, '[', '2', '~', /* 0x1A: F3 */
126 4, ESC, '[', '3', '~', /* 0x1F: F4 */
127 4, ESC, '[', '4', '~', /* 0x24: F5 */
128 4, ESC, '[', '5', '~', /* 0x29: F6 */
129 4, ESC, '[', '6', '~', /* 0x2E: F7 */
130 4, ESC, '[', '7', '~', /* 0x33: F8 */
131 4, ESC, '[', '8', '~', /* 0x38: F9 */
132 4, ESC, '[', '9', '~', /* 0x3D: F10 */
133 4, ESC, '[', '?', '~', /* 0x42: HELP */
135 4, ESC, '[', 'T', '~', /* 0x47: shift CRSR UP */
136 4, ESC, '[', 'S', '~', /* 0x4C: shift CRSR DOWN */
137 5, ESC, '[', ' ', '@', '~', /* 0x51: shift CRSR RIGHT */
138 5, ESC, '[', ' ', 'A', '~', /* 0x57: shift CRSR LEFT */
139 5, ESC, '[', '1', '0', '~', /* 0x5D: shift F1 */
140 5, ESC, '[', '1', '1', '~', /* 0x63: shift F2 */
141 5, ESC, '[', '1', '2', '~', /* 0x69: shift F3 */
142 5, ESC, '[', '1', '3', '~', /* 0x6F: shift F4 */
143 5, ESC, '[', '1', '4', '~', /* 0x75: shift F5 */
144 5, ESC, '[', '1', '5', '~', /* 0x7B: shift F6 */
145 5, ESC, '[', '1', '6', '~', /* 0x81: shift F7 */
146 5, ESC, '[', '1', '7', '~', /* 0x87: shift F8 */
147 5, ESC, '[', '1', '8', '~', /* 0x8D: shift F9 */
148 5, ESC, '[', '1', '9', '~', /* 0x93: shift F10 */
149 3, ESC, '[', 'Z', /* 0x99: shift TAB */
150 2, ESC, '[', /* 0x9d: alt ESC == CSI */
154 #ifndef _KERNEL
155 main(void)
157 exit(write (1, &ascii_kbdmap, sizeof (kbdmap)) == sizeof (kbdmap) ? 0 : 1);
159 #endif /* _KERNEL */