1 # SPDX-License-Identifier: GPL-2.0
2 # Default keymap for 3270 (ebcdic codepage 037).
15 keycode 10 = nul guillemotleft
16 keycode 11 = nul guillemotright
18 keycode 13 = nul yacute
19 keycode 14 = nul thorn
20 keycode 15 = nul plusminus
21 keycode 16 = nul degree
34 keycode 29 = nul cedilla
36 keycode 31 = nul currency
38 keycode 33 = nul tilde
47 keycode 42 = nul exclamdown
48 keycode 43 = nul questiondown
50 keycode 45 = nul Yacute
51 keycode 46 = nul THORN
52 keycode 47 = nul registered
53 keycode 48 = nul dead_circumflex
54 keycode 49 = nul sterling
56 keycode 51 = nul periodcentered
57 keycode 52 = nul copyright
58 keycode 53 = nul section
59 keycode 54 = nul paragraph
60 keycode 55 = nul onequarter
61 keycode 56 = nul onehalf
62 keycode 57 = nul threequarters
63 keycode 58 = nul bracketleft
64 keycode 59 = nul bracketright
66 keycode 61 = nul diaeresis
67 keycode 62 = nul acute
68 keycode 63 = nul multiply
69 keycode 64 = space braceleft
71 keycode 66 = acircumflex B
72 keycode 67 = adiaeresis C
77 keycode 72 = ccedilla H
80 keycode 75 = period ocircumflex
81 keycode 76 = less odiaeresis
82 keycode 77 = parenleft ograve
83 keycode 78 = plus oacute
84 keycode 79 = bar otilde
85 keycode 80 = ampersand braceright
87 keycode 82 = acircumflex K
88 keycode 83 = ediaeresis L
91 keycode 86 = icircumflex O
92 keycode 87 = idiaeresis P
95 keycode 90 = exclam onesuperior
96 keycode 91 = dollar ucircumflex
97 keycode 92 = asterisk udiaeresis
98 keycode 93 = parenright ugrave
99 keycode 94 = semicolon uacute
100 keycode 95 = notsign ydiaeresis
101 keycode 96 = minus backslash
102 keycode 97 = slash division
103 keycode 98 = Acircumflex S
104 keycode 99 = Adiaeresis T
105 keycode 100 = Agrave U
106 keycode 101 = Aacute V
107 keycode 102 = Atilde W
108 keycode 103 = Aring X
109 keycode 104 = Ccedilla Y
110 keycode 105 = Ntilde Z
111 keycode 106 = brokenbar twosuperior
112 keycode 107 = comma Ocircumflex
113 keycode 108 = percent Odiaeresis
114 keycode 109 = underscore Ograve
115 keycode 110 = greater Oacute
116 keycode 111 = question Otilde
117 keycode 112 = oslash zero
118 keycode 113 = Eacute one
119 keycode 114 = Ecircumflex two
120 keycode 115 = Ediaeresis three
121 keycode 116 = Egrave four
122 keycode 117 = Iacute five
123 keycode 118 = Icircumflex six
124 keycode 119 = Idiaeresis seven
125 keycode 120 = Igrave eight
126 keycode 121 = grave nine
127 keycode 122 = colon threesuperior
128 keycode 123 = numbersign Ucircumflex
129 keycode 124 = at Udiaeresis
130 keycode 125 = apostrophe Ugrave
131 keycode 126 = equal Uacute
132 keycode 127 = quotedbl nul
135 control keycode 74 = F22
136 control keycode 75 = F23
137 control keycode 76 = F24
138 control keycode 107 = Control_z # PA3
139 control keycode 108 = Control_c # PA1
140 control keycode 109 = KeyboardSignal # Clear
141 control keycode 110 = Control_d # PA2
142 control keycode 122 = F10
143 control keycode 123 = F11 # F11
144 control keycode 124 = Last_Console # F12
145 control keycode 125 = Linefeed
146 shift control keycode 65 = F13
147 shift control keycode 66 = F14
148 shift control keycode 67 = F15
149 shift control keycode 68 = F16
150 shift control keycode 69 = F17
151 shift control keycode 70 = F18
152 shift control keycode 71 = F19
153 shift control keycode 72 = F20
154 shift control keycode 73 = F21
155 shift control keycode 113 = F1
156 shift control keycode 114 = F2
157 shift control keycode 115 = Incr_Console
158 shift control keycode 116 = F4
159 shift control keycode 117 = F5
160 shift control keycode 118 = F6
161 shift control keycode 119 = Scroll_Backward
162 shift control keycode 120 = Scroll_Forward
163 shift control keycode 121 = F9
165 string F1 = "\033[[A"
166 string F2 = "\033[[B"
167 string F3 = "\033[[C"
168 string F4 = "\033[[D"
169 string F5 = "\033[[E"
170 string F6 = "\033[17~"
171 string F7 = "\033[18~"
172 string F8 = "\033[19~"
173 string F9 = "\033[20~"
174 string F10 = "\033[21~"
175 string F11 = "\033[23~"
176 string F12 = "\033[24~"
177 string F13 = "\033[25~"
178 string F14 = "\033[26~"
179 string F15 = "\033[28~"
180 string F16 = "\033[29~"
181 string F17 = "\033[31~"
182 string F18 = "\033[32~"
183 string F19 = "\033[33~"
184 string F20 = "\033[34~"
189 compose '^' 'c' to Control_c
190 compose '^' 'd' to Control_d
191 compose '^' 'z' to Control_z
192 compose '^' '\012' to nul