added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / devs / keymaps / pc105_ca.c
blob6811551296281dfb8afef32ca130cb6f23b95a22
1 // Kbdca_FrenchCanadian_pkf.txt
2 /*
3 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
4 $Id$
6 Desc: French Canadian PC105 Keymap
7 Lang: English
8 */
10 #include <devices/keymap.h>
12 STATIC char keymapname[] = "pc105_ca";
14 STATIC CONST UBYTE lokeymaptypes[];
15 STATIC CONST IPTR lokeymap[];
16 STATIC CONST UBYTE locapsable[];
17 STATIC CONST UBYTE lorepeatable[];
19 STATIC CONST UBYTE hikeymaptypes[];
20 STATIC CONST IPTR hikeymap[];
21 STATIC CONST UBYTE hicapsable[];
22 STATIC CONST UBYTE hirepeatable[];
24 CONST struct KeyMapNode km =
26 #if (AROS_FLAVOUR & AROS_FLAVOUR_BINCOMPAT)
28 NULL, NULL, 0, 0, keymapname
30 #else
32 NULL, NULL, keymapname, 0, 0
34 #endif
36 (UBYTE *)lokeymaptypes,
37 (IPTR *)lokeymap,
38 (UBYTE *)locapsable,
39 (UBYTE *)lorepeatable,
40 (UBYTE *)hikeymaptypes,
41 (IPTR *)hikeymap,
42 (UBYTE *)hicapsable,
43 (UBYTE *)hirepeatable
47 #undef N
48 #undef S
49 #undef A
50 #undef C
51 #undef D
52 #undef V
53 #undef ST
54 #undef NOP
56 #define N KC_NOQUAL
57 #define S KCF_SHIFT
58 #define A KCF_ALT
59 #define C KCF_CONTROL
60 #define D KCF_DEAD
61 #define V KC_VANILLA
62 #define ST KCF_STRING
63 #define NOP KCF_NOP
65 #define EUR 0xA4 /* ISO 8859-15: Euro = 164 = 0xA4) */
67 STATIC CONST UBYTE lokeymaptypes[] =
69 S, /* 00 */
70 S, /* 01 */
71 S|A, /* 02 */
72 S|A, /* 03 */
73 S|A, /* 04 */
74 S, /* 05 */
75 S, /* 06 */
76 S, /* 07 */
77 S, /* 08 */
78 S, /* 09 */
79 S, /* 0A */
80 S, /* 0B */
81 S, /* 0C */
82 N, /* 0D */
83 N, /* 0E */
84 S|A, /* 0F */
85 V, /* 10 q */
86 V, /* 11 w */
87 V, /* 12 e */
88 V, /* 13 r */
89 V, /* 14 t */
90 V, /* 15 z */
91 V, /* 16 u */
92 V, /* 17 i */
93 V, /* 18 o */
94 V, /* 19 p */
95 S, /* 1A */
96 S|A, /* 1B */
97 S|A, /* 1C */
98 S|A, /* 1D */
99 S|A, /* 1E */
100 S|A, /* 1F */
101 V, /* 20 a */
102 V, /* 21 s */
103 V, /* 22 d */
104 V, /* 23 f */
105 V, /* 24 g */
106 V, /* 25 h */
107 V, /* 26 j */
108 V, /* 27 k */
109 V, /* 28 l */
110 S, /* 29 */
111 S, /* 2A */
112 S, /* 2B */
113 N, /* 2C */
114 N, /* 2D */
115 N, /* 2E */
116 N, /* 2F */
117 S|A, /* 30 */
118 V, /* 31 y */
119 V, /* 32 x */
120 V, /* 33 c */
121 V, /* 34 v */
122 V, /* 35 b */
123 V, /* 36 n */
124 V, /* 37 m */
125 S|A, /* 38 */
126 S|A, /* 39 */
127 S, /* 3A */
128 N, /* 3B */
129 N, /* 3C */
130 N, /* 3D */
131 N, /* 3E */
132 N, /* 3F */
135 STATIC CONST UBYTE hikeymaptypes[] =
137 N, /* 40 SPACE */
138 N, /* 41 BACKSPACE */
139 ST|S, /* 42 TAB */
140 N, /* 43 ENTER */
141 C, /* 44 RETURN */
142 A, /* 45 ESCAPE */
143 N, /* 46 DEL */
144 ST|S, /* 47 INSERT ?? */
145 ST|S, /* 48 PAGE UP ?? */
146 ST|S, /* 49 PAGE DOWN ?? */
147 N, /* 4A NUMERIC PAD - */
148 ST|S, /* 4B F11 ?? */
149 ST|S, /* 4C CURSORUP*/
150 ST|S, /* 4D CURSORDOWN */
151 ST|S, /* 4E CURSORRIGHT */
152 ST|S, /* 4F CURSORLEFT */
153 ST|S, /* 50 F1 */
154 ST|S, /* 51 F2 */
155 ST|S, /* 52 F3 */
156 ST|S, /* 53 F4 */
157 ST|S, /* 54 F5 */
158 ST|S, /* 55 F6 */
159 ST|S, /* 56 F7 */
160 ST|S, /* 57 F8 */
161 ST|S, /* 58 F9 */
162 ST|S, /* 59 F10 */
163 NOP, /* 5A NUMLOCK */
164 N, /* 5B NUMPAD ) */
165 N, /* 5C NUMPAD / */
166 N, /* 5D NUMPAD * */
167 N, /* 5E NUMPAD + */
168 ST, /* 5F HELP */
169 NOP, /* 60 LEFT SHIFT*/
170 NOP, /* 61 RIGHT SHIFT */
171 NOP, /* 62 CAPS LOCK */
172 NOP, /* 63 CONTROL */
173 NOP, /* 64 LALT */
174 NOP, /* 65 RALT */
175 NOP, /* 66 LCOMMAND */
176 NOP, /* 67 RCOMMAND */
177 NOP, /* 68 LEFT MOUSE BUTTON*/
178 NOP, /* 69 RIGHT MOUSE BUTTON */
179 NOP, /* 6A MIDDLE MOUSE BUTTON */
180 NOP, /* 6B */
181 NOP, /* 6C */
182 NOP, /* 6D */
183 ST|A, /* 6E PAUSE/BREAK ??*/
184 ST|S, /* 6F F12 ?? */
185 ST|C, /* 70 HOME ?? */
186 ST|C, /* 71 END ?? */
187 NOP, /* 72 */
188 NOP, /* 73 */
189 NOP, /* 74 */
190 NOP, /* 75 */
191 NOP, /* 76 */
192 NOP, /* 77 */
193 NOP, /* 78 */
194 NOP, /* 79 */
195 NOP, /* 7A */
196 NOP, /* 7B */
197 NOP, /* 7C */
198 NOP, /* 7D */
199 NOP, /* 7E */
200 NOP /* 7F */
203 #undef N
204 #undef S
205 #undef A
206 #undef C
207 #undef D
208 #undef V
209 #undef ST
210 #undef NOP
212 #undef STRING
213 #undef DEAD
214 #undef BYTES
216 #define STRING(x) (IPTR)x
217 #define DEAD(x) (IPTR)x
218 #define BYTES(b0, b1, b2, b3) \
219 (((UBYTE)b0)<<24) | (((UBYTE)b1)<<16) | (((UBYTE)b2)<<8) | (((UBYTE)b3)<<0)
221 STATIC CONST IPTR lokeymap[] =
223 /*---- 1st QWERTY row - 0x00 to 0x0F */
224 BYTES(0x93,0x5C,0x7C,'#' ),
225 BYTES(0x94,0xB1,'!' ,'1' ),
226 BYTES(0x99,'@' ,0x22,'2' ),
227 BYTES(0xB6,0xA3,0x2F,'3' ),
228 BYTES(0xA3,0xA2,'$' ,'4' ),
229 BYTES(0xBC,0xA4,'%' ,'5' ),
230 BYTES(0xBD,0xAC,'?' ,'6' ),
231 BYTES(0xBE,0xA6,'&' ,'7' ),
232 BYTES('.' ,0xB2,'*' ,'8' ),
233 BYTES('.' ,0xB3,'(' ,'9' ),
234 BYTES(0xAF,0xBC,')' ,'0' ),
235 BYTES(0xA6,0xBD,'_' ,'-' ),
236 BYTES(0x88,0xBE,'+' ,'=' ),
237 BYTES(0x93,0x5C,0x7C,'#' ),
238 BYTES(0, 0, 0, 0 ),
239 BYTES('0', '0', '0', '0'),
240 /*---- 2nd QWERTY row - 0x10 to 0x1F */
241 BYTES(0x91,0x84,'Q' ,'q' ),
242 BYTES(0x92,0x82,'W' ,'w' ),
243 BYTES(0x89,0x80,'E' ,'e' ),
244 BYTES('.' ,0xAE,'R' ,'r' ),
245 BYTES('.' ,0x86,'T' ,'t' ),
246 BYTES('.' ,'.' ,'Y' ,'y' ),
247 BYTES(0xD8,0xF8,'U' ,'u' ),
248 BYTES('.' ,0xBF,'I' ,'i' ),
249 BYTES('.' ,0xA7,'O' ,'o' ),
250 BYTES('.' ,0xB6,'P' ,'p' ),
251 BYTES(0xB0,'[' ,0x5E,0x5E),
252 BYTES(0xB1,']' ,0xA8,0xB8),
253 BYTES(0, 0, 0, 0 ),
254 BYTES('1', '1', '1', '1'),
255 BYTES('2', '2', '2', '2'),
256 BYTES('3', '3', '3', '3'),
257 /*---- 3rd QWERTY row - 0x20 to 0x2F */
258 BYTES(0xC5,0xE5,'A' ,'a' ),
259 BYTES(0x8A,0x9A,'S' ,'s' ),
260 BYTES(0xD0,0xF0,'D' ,'d' ),
261 BYTES(0xDE,0xFE,'F' ,'f' ),
262 BYTES('.' ,0xA9,'G' ,'g' ),
263 BYTES(0xAA,0xBA,'H' ,'h' ),
264 BYTES('.' ,0xAC,'J' ,'j' ),
265 BYTES(0x8C,0x9C,'K' ,'k' ),
266 BYTES(0xC6,0xE6,'L' ,'l' ),
267 BYTES('.' ,0x7E,':' ,';' ),
268 BYTES('.' ,'{' ,0x60,0x60),
269 BYTES('.' ,'}' ,'>' ,'<' ),
270 BYTES(0, 0, 0, 0 ),
271 BYTES('4', '4', '4', '4'),
272 BYTES('5', '5', '5', '5'),
273 BYTES('6', '6', '6', '6'),
274 /*---- 4th QWERTY row - 0x30 to 0x3F */
275 BYTES('.' ,0xB0,0xBB,0xAB),
276 BYTES(0x87,0xA5,'Z' ,'z' ),
277 BYTES(0xA4,0xD7,'X' ,'x' ),
278 BYTES(0xC7,0xE7,'C' ,'c' ),
279 BYTES(0x8B,0xAB,'V' ,'v' ),
280 BYTES(0x95,0xB7,'B' ,'b' ),
281 BYTES(0x9B,0xBB,'N' ,'n' ),
282 BYTES('.' ,0xB5,'M' ,'m' ),
283 BYTES(0xB8,0xAF,0x27,',' ),
284 BYTES(0xF7,0xAD,0x22,'.' ),
285 BYTES(0x96,0xB4,0xC9,0xE9),
286 BYTES(0, 0, 0, 0 ),
287 BYTES(',', '.', ',', '.'),
288 BYTES('7', '7', '7', '7'),
289 BYTES('8', '8', '8', '8'),
290 BYTES('9', '9', '9', '9'),
293 #include "standard.h"
295 STATIC CONST IPTR hikeymap[] =
297 BYTES(' ', ' ', ' ', ' '), /* 40 */
298 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
299 STRING(tab_descr), /* 42 TAB */
300 BYTES(13, 13, 13, 13), /* 43 ENTER */
301 BYTES(0, 0, 10, 13), /* 44 RETURN */
302 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
303 BYTES(127, 127, 127, 127), /* 46 DEL */
304 STRING(insert_descr), /* 47 INSERT ?? */
305 STRING(pageup_descr), /* 48 PAGEUP ?? */
306 STRING(pagedown_descr), /* 49 PAGEDOWN ?? */
307 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
308 STRING(f11_descr), /* 4B F11 ?? */
309 STRING(up_descr), /* 4C CURSOR UP*/
310 STRING(down_descr), /* 4D CURSOR DOWN*/
311 STRING(right_descr), /* 4E CURSOR RIGHT */
312 STRING(left_descr), /* 4F CURSOR LEFT */
313 STRING(f1_descr), /* 50 F1 */
314 STRING(f2_descr), /* 51 */
315 STRING(f3_descr), /* 52 */
316 STRING(f4_descr), /* 53 */
317 STRING(f5_descr), /* 54 */
318 STRING(f6_descr), /* 55 */
319 STRING(f7_descr), /* 56 */
320 STRING(f8_descr), /* 57 */
321 STRING(f9_descr), /* 58 */
322 STRING(f10_descr), /* 59 */
323 BYTES(0, 0, 0, 0), /* 5A */
324 BYTES('/', '/', '/', '/'), /* 5B */
325 BYTES('*', '*', '*', '*'), /* 5C */
326 BYTES('-', '-', '-', '-'), /* 5D */
327 BYTES('+', '+', '+', '+'), /* 5E */
328 STRING(help_descr), /* 5F HELP */
329 BYTES(0, 0, 0, 0), /* 60 */
330 BYTES(0, 0, 0, 0), /* 61 */
331 BYTES(0, 0, 0, 0), /* 62 */
332 BYTES(0, 0, 0, 0), /* 63 */
333 BYTES(0, 0, 0, 0), /* 64 */
334 BYTES(0, 0, 0, 0), /* 65 */
335 BYTES(0, 0, 0, 0), /* 66 */
336 BYTES(0, 0, 0, 0), /* 67 */
337 BYTES(0, 0, 0, 0), /* 68 */
338 BYTES(0, 0, 0, 0), /* 69 */
339 BYTES(0, 0, 0, 0), /* 6A */
340 BYTES(0, 0, 0, 0), /* 6B */
341 BYTES(0, 0, 0, 0), /* 6C */
342 BYTES(0, 0, 0, 0), /* 6D */
343 STRING(pausebreak_descr), /* 6E PAUSE/BREAK ?? */
344 STRING(f12_descr), /* 6F F12 ?? */
345 STRING(home_descr), /* 70 HOME ?? */
346 STRING(end_descr), /* 71 END ?? */
347 BYTES(0, 0, 0, 0), /* 72 */
348 BYTES(0, 0, 0, 0), /* 73 */
349 BYTES(0, 0, 0, 0), /* 74 */
350 BYTES(0, 0, 0, 0), /* 75 */
351 BYTES(0, 0, 0, 0), /* 76 */
352 BYTES(0, 0, 0, 0), /* 77 */
353 BYTES(0, 0, 0, 0), /* 78 */
354 BYTES(0, 0, 0, 0), /* 79 */
355 BYTES(0, 0, 0, 0), /* 7A */
356 BYTES(0, 0, 0, 0), /* 7B */
357 BYTES(0, 0, 0, 0), /* 7C */
358 BYTES(0, 0, 0, 0), /* 7D */
359 BYTES(0, 0, 0, 0), /* 7E */
360 BYTES(0, 0, 0, 0), /* 7F */
363 #undef SETBITS
365 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
366 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
368 STATIC CONST UBYTE locapsable[] =
370 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
371 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
373 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
374 SETBITS(1, 1, 0, 0, 0, 0, 0, 0), /* 18 - 1F */
376 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
377 SETBITS(1, 0, 0, 0, 0, 0, 0, 0), /* 28 - 2F */
379 SETBITS(0, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
380 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
383 STATIC CONST UBYTE hicapsable[] =
385 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
386 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
388 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
389 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
391 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
392 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
394 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
395 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
398 STATIC CONST UBYTE lorepeatable[] =
400 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
401 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
403 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
404 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
406 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
407 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
409 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
410 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
413 STATIC CONST UBYTE hirepeatable[] =
415 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
416 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
418 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
419 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
421 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
422 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
424 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
425 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */