1# HP 712 kernel keymap. This uses 7 modifier combinations.
2
3keymaps 0-2,4-5,8,12
4# ie, plain,  Shift,  AltGr,  Control, Control+Shift, Alt and Control+Alt
5
6
7# Change the above line into
8#	keymaps 0-2,4-6,8,12
9# in case you want the entries
10#	altgr   control keycode  83 = Boot
11#	altgr   control keycode 111 = Boot
12# below.
13#
14# In fact AltGr is used very little, and one more keymap can
15# be saved by mapping AltGr to Alt (and adapting a few entries):
16# keycode 100 = Alt
17#
18keycode   1 = F9	F19	Console_21
19	control	keycode	1 = F9
20	alt	keycode	1 = Console_9
21	control	alt	keycode	1 = Console_9
22keycode   2 =
23keycode   3 = F5	F15	Console_17
24	control	keycode	3 = F5
25	alt	keycode	3 = Console_5
26	control	alt	keycode	3 = Console_5
27keycode   4 = F3	F13	Console_15
28	control	keycode	4 = F3
29	alt	keycode	4 = Console_3
30	control	alt	keycode	4 = Console_3
31keycode   5 = F1	F11	Console_13
32	control	keycode	5 = F1
33	alt	keycode	5 = Console_1
34	control	alt	keycode	5 = Console_1
35keycode   6 = F2	F12	Console_14
36	control	keycode	6 = F2
37	alt	keycode	6 = Console_2
38	control	alt	keycode	6 = Console_2
39keycode   7 = F12	F12	Console_24
40	control	keycode	7 = F12
41	alt	keycode	7 = Console_12
42	control	alt	keycode	7 = Console_12
43keycode   8 =
44keycode   9 = F10	F20	Console_22
45	control	keycode	9 = F10
46	alt	keycode	9 = Console_10
47	control	alt	keycode	9 = Console_10
48keycode  10 = F8	F18	Console_20
49	control	keycode	10 = F8
50	alt	keycode	10 = Console_8
51	control	alt	keycode	10 = Console_8
52keycode  11 = F6	F16	Console_18
53	control	keycode	11 = F6
54	alt	keycode	11 = Console_6
55	control	alt	keycode	11 = Console_6
56keycode  12 = F4	F14	Console_16
57	control	keycode	12 = F4
58	alt	keycode	12 = Console_4
59	control	alt	keycode 12 = Console_4
60keycode  13 = Tab	Tab
61	alt	keycode	13 = Meta_Tab
62keycode  14 = grave	asciitilde
63	control	keycode	14 = nul
64	alt	keycode	14 = Meta_grave
65keycode  15 =
66keycode  16 =
67keycode  17 = Alt
68keycode  18 = Shift
69keycode  19 =
70keycode  20 = Control
71keycode  21 = q
72keycode  22 = one	exclam	exclam
73keycode  23 =
74keycode  24 =
75keycode  25 =
76keycode  26 = z
77keycode  27 = s
78keycode  28 = a
79	altgr	keycode	28 = Hex_A
80keycode  29 = w
81keycode  30 = two	at	at
82keycode  31 =
83keycode  32 =
84keycode  33 = c
85	altgr	keycode	46 = Hex_C
86keycode  34 = x
87keycode  35 = d
88	altgr	keycode 35 = Hex_D
89keycode  36 = e
90	altgr	keycode	36 = Hex_E
91keycode  37 = four	dollar
92keycode  38 = three	numbersign
93keycode  39 =
94keycode  40 =
95keycode  41 =
96keycode  42 = v
97keycode  43 = f
98	 altgr	keycode 43 = Hex_F
99keycode  44 = t
100keycode  45 = r
101keycode  46 = five	percent
102keycode  47 =
103keycode  48 =
104keycode  49 = n
105keycode  50 = b
106	altgr	keycode	50 = Hex_B
107keycode  51 = h
108keycode  52 = g
109keycode  53 = y
110keycode  54 = six	asciicircum
111keycode  55 =
112keycode  56 =
113keycode  57 =
114keycode  58 = m
115keycode  59 = j
116keycode  60 = u
117keycode  61 = seven	ampersand
118keycode  62 = eight	asterisk	asterisk
119keycode  63 =
120keycode  64 =
121keycode  65 = comma	less
122	alt	keycode	65 = Meta_comma
123keycode  66 = k
124keycode  67 = i
125keycode  68 = o
126keycode  69 = zero	parenright	bracketright
127keycode  70 = nine	parenleft	bracketleft
128keycode  71 =
129keycode  72 =
130keycode  73 = period	greater
131	control	keycode	73 = Compose
132	alt	keycode	73 = Meta_period
133keycode  74 = slash	question
134	control	keycode 74 = Delete
135	alt	keycode 53 = Meta_slash
136keycode  75 = l
137keycode  76 = semicolon	colon
138	alt	keycode	39 = Meta_semicolon
139keycode  77 = p
140keycode  78 = minus	underscore
141keycode  79 =
142keycode  80 =
143keycode  81 =
144keycode  82 = apostrophe	quotedbl
145	control	keycode	82 = Control_g
146	alt	keycode	40 = Meta_apostrophe
147keycode  83 =
148keycode  84 = bracketleft	braceleft
149	control	keycode	84 = Escape
150	alt	keycode	26 = Meta_bracketleft
151keycode  85 = equal	plus
152keycode  86 =
153keycode  87 =
154keycode  88 = Caps_Lock
155keycode  88 =
156keycode  89 =
157keycode  89 =
158keycode  89 =
159keycode  90 = Return
160	 alt  keycode	90 = Meta_Control_m
161keycode  91 = bracketright	braceright	asciitilde
162	control	keycode	91 = Control_bracketright
163	alt	keycode	91 = Meta_bracketright
164keycode  92 =
165keycode  93 = backslash		bar
166	control	keycode	43 = Control_backslash
167	alt	keycode	43 = Meta_backslash
168keycode  94 =
169keycode  95 =
170keycode  96 =
171keycode  97 =
172keycode  98 =
173keycode  99 =
174keycode 100 =
175keycode 101 =
176keycode 102 = BackSpace
177keycode 103 =
178keycode 104 =
179keycode 105 = KP_1
180	alt	keycode	105 = Ascii_1
181	altgr	keycode	105 = Hex_1
182keycode 106 =
183keycode 107 = KP_4
184	alt	keycode	107 = Ascii_4
185	altgr	keycode	107 = Hex_4
186keycode 108 = KP_7
187	alt	keycode	108 = Ascii_7
188	altgr	keycode	108 = Hex_7
189keycode 109 =
190keycode 110 =
191keycode 111 =
192keycode 112 = KP_0
193	alt	keycode	82 = Ascii_0
194	altgr	keycode	82 = Hex_0
195keycode 113 = KP_Period
196keycode 114 = KP_2
197	alt	keycode	114 = Ascii_2
198	altgr	keycode	114 = Hex_2
199keycode 115 = KP_5
200	alt	keycode	115 = Ascii_5
201	altgr	keycode	115 = Hex_5
202keycode 116 = KP_6
203	alt	keycode	116 = Ascii_6
204	altgr	keycode	116 = Hex_6
205keycode 117 = KP_8
206	alt	keycode	117 = Ascii_8
207	altgr	keycode	117 = Hex_8
208keycode 118 = Escape
209keycode 119 =
210keycode 120 = F11
211keycode 121 = KP_Add
212keycode 122 = KP_3
213	alt	keycode	122 = Ascii_3
214	altgr	keycode	122 = Hex_3
215keycode 123 = KP_Subtract
216keycode 124 = KP_Multiply
217keycode 125 = KP_9
218	alt	keycode	125 = Ascii_9
219	altgr	keycode	125 = Hex_9
220keycode 126 =
221# 131!!
222keycode 127 = F7	F17	Console_19
223	control	keycode	127 = F7
224	alt	keycode	127 = Console_7
225	control	alt	keycode	127 = Console_7
226
227string F1 = "\033[[A"
228string F2 = "\033[[B"
229string F3 = "\033[[C"
230string F4 = "\033[[D"
231string F5 = "\033[[E"
232string F6 = "\033[17~"
233string F7 = "\033[18~"
234string F8 = "\033[19~"
235string F9 = "\033[20~"
236string F10 = "\033[21~"
237string F11 = "\033[23~"
238string F12 = "\033[24~"
239string F13 = "\033[25~"
240string F14 = "\033[26~"
241string F15 = "\033[28~"
242string F16 = "\033[29~"
243string F17 = "\033[31~"
244string F18 = "\033[32~"
245string F19 = "\033[33~"
246string F20 = "\033[34~"
247string Find = "\033[1~"
248string Insert = "\033[2~"
249string Remove = "\033[3~"
250string Select = "\033[4~"
251string Prior = "\033[5~"
252string Next = "\033[6~"
253string Macro = "\033[M"
254string Pause = "\033[P"
255compose '`' 'A' to '�'
256compose '`' 'a' to '�'
257compose '\'' 'A' to '�'
258compose '\'' 'a' to '�'
259compose '^' 'A' to '�'
260compose '^' 'a' to '�'
261compose '~' 'A' to '�'
262compose '~' 'a' to '�'
263compose '"' 'A' to '�'
264compose '"' 'a' to '�'
265compose 'O' 'A' to '�'
266compose 'o' 'a' to '�'
267compose '0' 'A' to '�'
268compose '0' 'a' to '�'
269compose 'A' 'A' to '�'
270compose 'a' 'a' to '�'
271compose 'A' 'E' to '�'
272compose 'a' 'e' to '�'
273compose ',' 'C' to '�'
274compose ',' 'c' to '�'
275compose '`' 'E' to '�'
276compose '`' 'e' to '�'
277compose '\'' 'E' to '�'
278compose '\'' 'e' to '�'
279compose '^' 'E' to '�'
280compose '^' 'e' to '�'
281compose '"' 'E' to '�'
282compose '"' 'e' to '�'
283compose '`' 'I' to '�'
284compose '`' 'i' to '�'
285compose '\'' 'I' to '�'
286compose '\'' 'i' to '�'
287compose '^' 'I' to '�'
288compose '^' 'i' to '�'
289compose '"' 'I' to '�'
290compose '"' 'i' to '�'
291compose '-' 'D' to '�'
292compose '-' 'd' to '�'
293compose '~' 'N' to '�'
294compose '~' 'n' to '�'
295compose '`' 'O' to '�'
296compose '`' 'o' to '�'
297compose '\'' 'O' to '�'
298compose '\'' 'o' to '�'
299compose '^' 'O' to '�'
300compose '^' 'o' to '�'
301compose '~' 'O' to '�'
302compose '~' 'o' to '�'
303compose '"' 'O' to '�'
304compose '"' 'o' to '�'
305compose '/' 'O' to '�'
306compose '/' 'o' to '�'
307compose '`' 'U' to '�'
308compose '`' 'u' to '�'
309compose '\'' 'U' to '�'
310compose '\'' 'u' to '�'
311compose '^' 'U' to '�'
312compose '^' 'u' to '�'
313compose '"' 'U' to '�'
314compose '"' 'u' to '�'
315compose '\'' 'Y' to '�'
316compose '\'' 'y' to '�'
317compose 'T' 'H' to '�'
318compose 't' 'h' to '�'
319compose 's' 's' to '�'
320compose '"' 'y' to '�'
321compose 's' 'z' to '�'
322compose 'i' 'j' to '�'
323