1 /* $OpenBSD: wsksymdef.h,v 1.41 2023/07/09 08:02:14 tobhe Exp $ */ 2 /* $NetBSD: wsksymdef.h,v 1.34.4.1 2000/07/07 09:49:54 hannken Exp $ */ 3 4 /*- 5 * Copyright (c) 1997 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Juergen Hannken-Illjes. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions and the following disclaimer. 16 * 2. Redistributions in binary form must reproduce the above copyright 17 * notice, this list of conditions and the following disclaimer in the 18 * documentation and/or other materials provided with the distribution. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33 #ifndef _DEV_WSCONS_WSKSYMDEF_H_ 34 #define _DEV_WSCONS_WSKSYMDEF_H_ 35 36 /* 37 * Keysymbols encoded as 16-bit Unicode. Special symbols 38 * are encoded in the private area (0xe000 - 0xf8ff). 39 * 40 * This file is parsed from userland. Encode keysyms as: 41 * 42 * #define KS_[^ \t]* 0x[0-9a-f]* 43 * 44 * and don't modify the border comments. 45 */ 46 47 /*BEGINKEYSYMDECL*/ 48 49 /* 50 * Group Ascii (ISO Latin1) character in low byte 51 */ 52 53 #define KS_BackSpace 0x08 54 #define KS_Tab 0x09 55 #define KS_Linefeed 0x0a 56 #define KS_Clear 0x0b 57 #define KS_Return 0x0d 58 #define KS_Escape 0x1b 59 #define KS_space 0x20 60 #define KS_exclam 0x21 61 #define KS_quotedbl 0x22 62 #define KS_numbersign 0x23 63 #define KS_dollar 0x24 64 #define KS_percent 0x25 65 #define KS_ampersand 0x26 66 #define KS_apostrophe 0x27 67 #define KS_parenleft 0x28 68 #define KS_parenright 0x29 69 #define KS_asterisk 0x2a 70 #define KS_plus 0x2b 71 #define KS_comma 0x2c 72 #define KS_minus 0x2d 73 #define KS_period 0x2e 74 #define KS_slash 0x2f 75 #define KS_0 0x30 76 #define KS_1 0x31 77 #define KS_2 0x32 78 #define KS_3 0x33 79 #define KS_4 0x34 80 #define KS_5 0x35 81 #define KS_6 0x36 82 #define KS_7 0x37 83 #define KS_8 0x38 84 #define KS_9 0x39 85 #define KS_colon 0x3a 86 #define KS_semicolon 0x3b 87 #define KS_less 0x3c 88 #define KS_equal 0x3d 89 #define KS_greater 0x3e 90 #define KS_question 0x3f 91 #define KS_at 0x40 92 #define KS_A 0x41 93 #define KS_B 0x42 94 #define KS_C 0x43 95 #define KS_D 0x44 96 #define KS_E 0x45 97 #define KS_F 0x46 98 #define KS_G 0x47 99 #define KS_H 0x48 100 #define KS_I 0x49 101 #define KS_J 0x4a 102 #define KS_K 0x4b 103 #define KS_L 0x4c 104 #define KS_M 0x4d 105 #define KS_N 0x4e 106 #define KS_O 0x4f 107 #define KS_P 0x50 108 #define KS_Q 0x51 109 #define KS_R 0x52 110 #define KS_S 0x53 111 #define KS_T 0x54 112 #define KS_U 0x55 113 #define KS_V 0x56 114 #define KS_W 0x57 115 #define KS_X 0x58 116 #define KS_Y 0x59 117 #define KS_Z 0x5a 118 #define KS_bracketleft 0x5b 119 #define KS_backslash 0x5c 120 #define KS_bracketright 0x5d 121 #define KS_asciicircum 0x5e 122 #define KS_underscore 0x5f 123 #define KS_grave 0x60 124 #define KS_a 0x61 125 #define KS_b 0x62 126 #define KS_c 0x63 127 #define KS_d 0x64 128 #define KS_e 0x65 129 #define KS_f 0x66 130 #define KS_g 0x67 131 #define KS_h 0x68 132 #define KS_i 0x69 133 #define KS_j 0x6a 134 #define KS_k 0x6b 135 #define KS_l 0x6c 136 #define KS_m 0x6d 137 #define KS_n 0x6e 138 #define KS_o 0x6f 139 #define KS_p 0x70 140 #define KS_q 0x71 141 #define KS_r 0x72 142 #define KS_s 0x73 143 #define KS_t 0x74 144 #define KS_u 0x75 145 #define KS_v 0x76 146 #define KS_w 0x77 147 #define KS_x 0x78 148 #define KS_y 0x79 149 #define KS_z 0x7a 150 #define KS_braceleft 0x7b 151 #define KS_bar 0x7c 152 #define KS_braceright 0x7d 153 #define KS_asciitilde 0x7e 154 #define KS_Delete 0x7f 155 156 #define KS_nobreakspace 0xa0 157 #define KS_exclamdown 0xa1 158 #define KS_cent 0xa2 159 #define KS_sterling 0xa3 160 #define KS_currency 0xa4 161 #define KS_yen 0xa5 162 #define KS_brokenbar 0xa6 163 #define KS_section 0xa7 164 #define KS_diaeresis 0xa8 165 #define KS_copyright 0xa9 166 #define KS_ordfeminine 0xaa 167 #define KS_guillemotleft 0xab 168 #define KS_notsign 0xac 169 #define KS_hyphen 0xad 170 #define KS_registered 0xae 171 #define KS_macron 0xaf 172 #define KS_degree 0xb0 173 #define KS_plusminus 0xb1 174 #define KS_twosuperior 0xb2 175 #define KS_threesuperior 0xb3 176 #define KS_acute 0xb4 177 #define KS_mu 0xb5 178 #define KS_paragraph 0xb6 179 #define KS_periodcentered 0xb7 180 #define KS_cedilla 0xb8 181 #define KS_onesuperior 0xb9 182 #define KS_masculine 0xba 183 #define KS_guillemotright 0xbb 184 #define KS_onequarter 0xbc 185 #define KS_onehalf 0xbd 186 #define KS_threequarters 0xbe 187 #define KS_questiondown 0xbf 188 #define KS_Agrave 0xc0 189 #define KS_Aacute 0xc1 190 #define KS_Acircumflex 0xc2 191 #define KS_Atilde 0xc3 192 #define KS_Adiaeresis 0xc4 193 #define KS_Aring 0xc5 194 #define KS_AE 0xc6 195 #define KS_Ccedilla 0xc7 196 #define KS_Egrave 0xc8 197 #define KS_Eacute 0xc9 198 #define KS_Ecircumflex 0xca 199 #define KS_Ediaeresis 0xcb 200 #define KS_Igrave 0xcc 201 #define KS_Iacute 0xcd 202 #define KS_Icircumflex 0xce 203 #define KS_Idiaeresis 0xcf 204 #define KS_ETH 0xd0 205 #define KS_Ntilde 0xd1 206 #define KS_Ograve 0xd2 207 #define KS_Oacute 0xd3 208 #define KS_Ocircumflex 0xd4 209 #define KS_Otilde 0xd5 210 #define KS_Odiaeresis 0xd6 211 #define KS_multiply 0xd7 212 #define KS_Ooblique 0xd8 213 #define KS_Ugrave 0xd9 214 #define KS_Uacute 0xda 215 #define KS_Ucircumflex 0xdb 216 #define KS_Udiaeresis 0xdc 217 #define KS_Yacute 0xdd 218 #define KS_THORN 0xde 219 #define KS_ssharp 0xdf 220 #define KS_agrave 0xe0 221 #define KS_aacute 0xe1 222 #define KS_acircumflex 0xe2 223 #define KS_atilde 0xe3 224 #define KS_adiaeresis 0xe4 225 #define KS_aring 0xe5 226 #define KS_ae 0xe6 227 #define KS_ccedilla 0xe7 228 #define KS_egrave 0xe8 229 #define KS_eacute 0xe9 230 #define KS_ecircumflex 0xea 231 #define KS_ediaeresis 0xeb 232 #define KS_igrave 0xec 233 #define KS_iacute 0xed 234 #define KS_icircumflex 0xee 235 #define KS_idiaeresis 0xef 236 #define KS_eth 0xf0 237 #define KS_ntilde 0xf1 238 #define KS_ograve 0xf2 239 #define KS_oacute 0xf3 240 #define KS_ocircumflex 0xf4 241 #define KS_otilde 0xf5 242 #define KS_odiaeresis 0xf6 243 #define KS_division 0xf7 244 #define KS_oslash 0xf8 245 #define KS_ugrave 0xf9 246 #define KS_uacute 0xfa 247 #define KS_ucircumflex 0xfb 248 #define KS_udiaeresis 0xfc 249 #define KS_yacute 0xfd 250 #define KS_thorn 0xfe 251 #define KS_ydiaeresis 0xff 252 253 #define KS_Odoubleacute 0x0150 254 #define KS_odoubleacute 0x0151 255 #define KS_Udoubleacute 0x0170 256 #define KS_udoubleacute 0x0171 257 258 /* 259 * Group Dead (dead accents) 260 */ 261 262 #define KS_dead_grave 0x0300 263 #define KS_dead_acute 0x0301 264 #define KS_dead_circumflex 0x0302 265 #define KS_dead_tilde 0x0303 266 #define KS_dead_diaeresis 0x0308 267 #define KS_dead_abovering 0x030a 268 #define KS_dead_cedilla 0x0327 269 #define KS_dead_caron 0x0328 270 271 /* 272 * Group Cyrillic 273 */ 274 275 #define KS_Cyrillic_YO 0x0401 276 #define KS_Cyrillic_YEUKR 0x0404 277 #define KS_Cyrillic_IUKR 0x0406 278 #define KS_Cyrillic_YI 0x0407 279 #define KS_Cyrillic_A 0x0410 280 #define KS_Cyrillic_BE 0x0411 281 #define KS_Cyrillic_VE 0x0412 282 #define KS_Cyrillic_GE 0x0413 283 #define KS_Cyrillic_DE 0x0414 284 #define KS_Cyrillic_IE 0x0415 285 #define KS_Cyrillic_ZHE 0x0416 286 #define KS_Cyrillic_ZE 0x0417 287 #define KS_Cyrillic_I 0x0418 288 #define KS_Cyrillic_ISHORT 0x0419 289 #define KS_Cyrillic_KA 0x041a 290 #define KS_Cyrillic_EL 0x041b 291 #define KS_Cyrillic_EM 0x041c 292 #define KS_Cyrillic_EN 0x041d 293 #define KS_Cyrillic_O 0x041e 294 #define KS_Cyrillic_PE 0x041f 295 #define KS_Cyrillic_ER 0x0420 296 #define KS_Cyrillic_ES 0x0421 297 #define KS_Cyrillic_TE 0x0422 298 #define KS_Cyrillic_U 0x0423 299 #define KS_Cyrillic_EF 0x0424 300 #define KS_Cyrillic_HA 0x0425 301 #define KS_Cyrillic_TSE 0x0426 302 #define KS_Cyrillic_CHE 0x0427 303 #define KS_Cyrillic_SHA 0x0428 304 #define KS_Cyrillic_SCHA 0x0429 305 #define KS_Cyrillic_HSIGHN 0x042a 306 #define KS_Cyrillic_YERU 0x042b 307 #define KS_Cyrillic_SSIGHN 0x042c 308 #define KS_Cyrillic_E 0x042d 309 #define KS_Cyrillic_YU 0x042e 310 #define KS_Cyrillic_YA 0x042f 311 #define KS_Cyrillic_a 0x0430 312 #define KS_Cyrillic_be 0x0431 313 #define KS_Cyrillic_ve 0x0432 314 #define KS_Cyrillic_ge 0x0433 315 #define KS_Cyrillic_de 0x0434 316 #define KS_Cyrillic_ie 0x0435 317 #define KS_Cyrillic_zhe 0x0436 318 #define KS_Cyrillic_ze 0x0437 319 #define KS_Cyrillic_i 0x0438 320 #define KS_Cyrillic_ishort 0x0439 321 #define KS_Cyrillic_ka 0x043a 322 #define KS_Cyrillic_el 0x043b 323 #define KS_Cyrillic_em 0x043c 324 #define KS_Cyrillic_en 0x043d 325 #define KS_Cyrillic_o 0x043e 326 #define KS_Cyrillic_pe 0x043f 327 #define KS_Cyrillic_er 0x0440 328 #define KS_Cyrillic_es 0x0441 329 #define KS_Cyrillic_te 0x0442 330 #define KS_Cyrillic_u 0x0443 331 #define KS_Cyrillic_ef 0x0444 332 #define KS_Cyrillic_ha 0x0445 333 #define KS_Cyrillic_tse 0x0446 334 #define KS_Cyrillic_che 0x0447 335 #define KS_Cyrillic_sha 0x0448 336 #define KS_Cyrillic_scha 0x0449 337 #define KS_Cyrillic_hsighn 0x044a 338 #define KS_Cyrillic_yeru 0x044b 339 #define KS_Cyrillic_ssighn 0x044c 340 #define KS_Cyrillic_e 0x044d 341 #define KS_Cyrillic_yu 0x044e 342 #define KS_Cyrillic_ya 0x044f 343 #define KS_Cyrillic_yo 0x0451 344 #define KS_Cyrillic_yeukr 0x0454 345 #define KS_Cyrillic_iukr 0x0456 346 #define KS_Cyrillic_yi 0x0457 347 #define KS_Cyrillic_GHEUKR 0x0490 348 #define KS_Cyrillic_gheukr 0x0491 349 350 /* 351 * Group Latin-2 352 */ 353 354 #define KS_L2_Abreve 0x0102 355 #define KS_L2_abreve 0x0103 356 #define KS_L2_Aogonek 0x0104 357 #define KS_L2_aogonek 0x0105 358 #define KS_L2_Cacute 0x0106 359 #define KS_L2_cacute 0x0107 360 #define KS_L2_Ccaron 0x010c 361 #define KS_L2_ccaron 0x010d 362 #define KS_L2_Dcaron 0x010e 363 #define KS_L2_dcaron 0x010f 364 #define KS_L2_Dstroke 0x0110 365 #define KS_L2_dstroke 0x0111 366 #define KS_L2_Eogonek 0x0118 367 #define KS_L2_eogonek 0x0119 368 #define KS_L2_Ecaron 0x011a 369 #define KS_L2_ecaron 0x011b 370 #define KS_L2_Lacute 0x0139 371 #define KS_L2_lacute 0x013a 372 #define KS_L2_Lcaron 0x013d 373 #define KS_L2_lcaron 0x013e 374 #define KS_L2_Lstroke 0x0141 375 #define KS_L2_lstroke 0x0142 376 #define KS_L2_Nacute 0x0143 377 #define KS_L2_nacute 0x0144 378 #define KS_L2_Ncaron 0x0147 379 #define KS_L2_Odoubleacute 0x0150 380 #define KS_L2_odoubleacute 0x0151 381 #define KS_L2_Racute 0x0154 382 #define KS_L2_racute 0x0155 383 #define KS_L2_Rcaron 0x0158 384 #define KS_L2_rcaron 0x0159 385 #define KS_L2_Sacute 0x015a 386 #define KS_L2_sacute 0x015b 387 #define KS_L2_Scedilla 0x015e 388 #define KS_L2_scedilla 0x015f 389 #define KS_L2_Scaron 0x0160 390 #define KS_L2_scaron 0x0161 391 #define KS_L2_Tcedilla 0x0162 392 #define KS_L2_tcedilla 0x0163 393 #define KS_L2_Tcaron 0x0164 394 #define KS_L2_tcaron 0x0165 395 #define KS_L2_Uring 0x016e 396 #define KS_L2_uring 0x016f 397 #define KS_L2_Udoubleacute 0x0170 398 #define KS_L2_udoubleacute 0x0171 399 #define KS_L2_Zacute 0x0179 400 #define KS_L2_zacute 0x017a 401 #define KS_L2_Zdotabove 0x017b 402 #define KS_L2_zdotabove 0x017c 403 #define KS_L2_Zcaron 0x017d 404 #define KS_L2_zcaron 0x017e 405 406 #define KS_L2_caron 0x02c7 407 #define KS_L2_breve 0x02d8 408 #define KS_L2_dotabove 0x02d9 409 #define KS_L2_ogonek 0x02db 410 #define KS_L2_dblacute 0x02dd 411 412 /* 413 * Group Latin-5 414 */ 415 416 #define KS_L5_Gbreve 0x011e 417 #define KS_L5_gbreve 0x011f 418 #define KS_L5_Idotabove 0x0130 419 #define KS_L5_idotless 0x0131 420 #define KS_L5_Scedilla 0x015e 421 #define KS_L5_scedilla 0x015f 422 423 /* 424 * Group Latin-7 425 */ 426 427 #define KS_L7_rightdblquot 0x201d 428 #define KS_L7_dbllow9quot 0x201e 429 #define KS_L7_Ostroke 0x00d8 430 #define KS_L7_Rcedilla 0x0156 431 #define KS_L7_AE 0x00c0 432 #define KS_L7_leftdblquot 0x201c 433 #define KS_L7_ostroke 0x00f8 434 #define KS_L7_rcedilla 0x0157 435 #define KS_L7_ae 0x00e6 436 #define KS_L7_Aogonek 0x0104 437 #define KS_L7_Iogonek 0x012e 438 #define KS_L7_Amacron 0x0100 439 #define KS_L7_Cacute 0x0106 440 #define KS_L7_Eogonek 0x0118 441 #define KS_L7_Emacron 0x0112 442 #define KS_L7_Ccaron 0x010c 443 #define KS_L7_Zacute 0x0179 444 #define KS_L7_Edot 0x0116 445 #define KS_L7_Gcedilla 0x0122 446 #define KS_L7_Kcedilla 0x0136 447 #define KS_L7_Imacron 0x012a 448 #define KS_L7_Lcedilla 0x013b 449 #define KS_L7_Scaron 0x0160 450 #define KS_L7_Nacute 0x0143 451 #define KS_L7_Ncedilla 0x0145 452 #define KS_L7_Omacron 0x014c 453 #define KS_L7_Uogonek 0x0172 454 #define KS_L7_Lstroke 0x0141 455 #define KS_L7_Sacute 0x015a 456 #define KS_L7_Umacron 0x016a 457 #define KS_L7_Zdot 0x017b 458 #define KS_L7_Zcaron 0x017d 459 #define KS_L7_aogonek 0x0105 460 #define KS_L7_iogonek 0x012f 461 #define KS_L7_amacron 0x0101 462 #define KS_L7_cacute 0x0107 463 #define KS_L7_eogonek 0x0119 464 #define KS_L7_emacron 0x0113 465 #define KS_L7_ccaron 0x010d 466 #define KS_L7_zacute 0x017a 467 #define KS_L7_edot 0x0117 468 #define KS_L7_gcedilla 0x0123 469 #define KS_L7_kcedilla 0x0137 470 #define KS_L7_imacron 0x012b 471 #define KS_L7_lcedilla 0x013c 472 #define KS_L7_scaron 0x0161 473 #define KS_L7_nacute 0x0144 474 #define KS_L7_ncedilla 0x0146 475 #define KS_L7_omacron 0x014d 476 #define KS_L7_uogonek 0x0173 477 #define KS_L7_lstroke 0x0142 478 #define KS_L7_sacute 0x015b 479 #define KS_L7_umacron 0x016b 480 #define KS_L7_zdot 0x017c 481 #define KS_L7_zcaron 0x017e 482 #define KS_L7_rightsnglquot 0x2019 483 484 /* 485 * Group 1 (modifiers) 486 */ 487 488 #define KS_Shift_L 0xf101 489 #define KS_Shift_R 0xf102 490 #define KS_Control_L 0xf103 491 #define KS_Control_R 0xf104 492 #define KS_Caps_Lock 0xf105 493 #define KS_Shift_Lock 0xf106 494 #define KS_Alt_L 0xf107 495 #define KS_Alt_R 0xf108 496 #define KS_Multi_key 0xf109 497 #define KS_Mode_switch 0xf10a 498 #define KS_Num_Lock 0xf10b 499 #define KS_Hold_Screen 0xf10c 500 #define KS_Cmd 0xf10d 501 #define KS_Cmd1 0xf10e 502 #define KS_Cmd2 0xf10f 503 #define KS_Meta_L 0xf110 504 #define KS_Meta_R 0xf111 505 #define KS_Zenkaku_Hankaku 0xf112 /* Zenkaku/Hankaku toggle */ 506 #define KS_Hiragana_Katakana 0xf113 /* Hiragana/Katakana toggle */ 507 #define KS_Henkan_Mode 0xf114 /* Start/Stop Conversion */ 508 #define KS_Henkan 0xf115 /* Alias for Henkan_Mode */ 509 #define KS_Muhenkan 0xf116 /* Cancel Conversion */ 510 #define KS_Mode_Lock 0xf117 511 512 /* 513 * Group 2 (keypad) character in low byte 514 */ 515 516 #define KS_KP_F1 0xf291 517 #define KS_KP_F2 0xf292 518 #define KS_KP_F3 0xf293 519 #define KS_KP_F4 0xf294 520 #define KS_KP_Home 0xf295 521 #define KS_KP_Left 0xf296 522 #define KS_KP_Up 0xf297 523 #define KS_KP_Right 0xf298 524 #define KS_KP_Down 0xf299 525 #define KS_KP_Prior 0xf29a 526 #define KS_KP_Next 0xf29b 527 #define KS_KP_End 0xf29c 528 #define KS_KP_Begin 0xf29d 529 #define KS_KP_Insert 0xf29e 530 #define KS_KP_Delete 0xf29f 531 532 #define KS_KP_Space 0xf220 533 #define KS_KP_Tab 0xf209 534 #define KS_KP_Enter 0xf20d 535 #define KS_KP_Equal 0xf23d 536 #define KS_KP_Numbersign 0xf223 537 #define KS_KP_Multiply 0xf22a 538 #define KS_KP_Add 0xf22b 539 #define KS_KP_Separator 0xf22c 540 #define KS_KP_Subtract 0xf22d 541 #define KS_KP_Decimal 0xf22e 542 #define KS_KP_Divide 0xf22f 543 #define KS_KP_0 0xf230 544 #define KS_KP_1 0xf231 545 #define KS_KP_2 0xf232 546 #define KS_KP_3 0xf233 547 #define KS_KP_4 0xf234 548 #define KS_KP_5 0xf235 549 #define KS_KP_6 0xf236 550 #define KS_KP_7 0xf237 551 #define KS_KP_8 0xf238 552 #define KS_KP_9 0xf239 553 554 /* 555 * Group 3 (function) 556 */ 557 558 #define KS_f1 0xf300 559 #define KS_f2 0xf301 560 #define KS_f3 0xf302 561 #define KS_f4 0xf303 562 #define KS_f5 0xf304 563 #define KS_f6 0xf305 564 #define KS_f7 0xf306 565 #define KS_f8 0xf307 566 #define KS_f9 0xf308 567 #define KS_f10 0xf309 568 #define KS_f11 0xf30a 569 #define KS_f12 0xf30b 570 #define KS_f13 0xf30c 571 #define KS_f14 0xf30d 572 #define KS_f15 0xf30e 573 #define KS_f16 0xf30f 574 #define KS_f17 0xf310 575 #define KS_f18 0xf311 576 #define KS_f19 0xf312 577 #define KS_f20 0xf313 578 #define KS_f21 0xf314 579 #define KS_f22 0xf315 580 #define KS_f23 0xf316 581 #define KS_f24 0xf317 582 583 #define KS_F1 0xf340 584 #define KS_F2 0xf341 585 #define KS_F3 0xf342 586 #define KS_F4 0xf343 587 #define KS_F5 0xf344 588 #define KS_F6 0xf345 589 #define KS_F7 0xf346 590 #define KS_F8 0xf347 591 #define KS_F9 0xf348 592 #define KS_F10 0xf349 593 #define KS_F11 0xf34a 594 #define KS_F12 0xf34b 595 #define KS_F13 0xf34c 596 #define KS_F14 0xf34d 597 #define KS_F15 0xf34e 598 #define KS_F16 0xf34f 599 #define KS_F17 0xf350 600 #define KS_F18 0xf351 601 #define KS_F19 0xf352 602 #define KS_F20 0xf353 603 #define KS_F21 0xf354 604 #define KS_F22 0xf355 605 #define KS_F23 0xf356 606 #define KS_F24 0xf357 607 608 #define KS_Home 0xf381 609 #define KS_Prior 0xf382 610 #define KS_Next 0xf383 611 #define KS_Up 0xf384 612 #define KS_Down 0xf385 613 #define KS_Left 0xf386 614 #define KS_Right 0xf387 615 #define KS_End 0xf388 616 #define KS_Insert 0xf389 617 #define KS_Help 0xf38a 618 #define KS_Execute 0xf38b 619 #define KS_Find 0xf38c 620 #define KS_Select 0xf38d 621 #define KS_Again 0xf38e 622 #define KS_Props 0xf38f 623 #define KS_Undo 0xf390 624 #define KS_Front 0xf391 625 #define KS_Copy 0xf392 626 #define KS_Open 0xf393 627 #define KS_Paste 0xf394 628 #define KS_Cut 0xf395 629 #define KS_Backtab 0xf396 630 631 #define KS_Menu 0xf3c0 632 #define KS_Pause 0xf3c1 633 #define KS_Print_Screen 0xf3c2 634 635 #define KS_AudioMute 0xf3d1 636 #define KS_AudioLower 0xf3d2 637 #define KS_AudioRaise 0xf3d3 638 639 /* 640 * Group 4 (command) 641 */ 642 643 #define KS_Cmd_Screen0 0xf400 644 #define KS_Cmd_Screen1 0xf401 645 #define KS_Cmd_Screen2 0xf402 646 #define KS_Cmd_Screen3 0xf403 647 #define KS_Cmd_Screen4 0xf404 648 #define KS_Cmd_Screen5 0xf405 649 #define KS_Cmd_Screen6 0xf406 650 #define KS_Cmd_Screen7 0xf407 651 #define KS_Cmd_Screen8 0xf408 652 #define KS_Cmd_Screen9 0xf409 653 #define KS_Cmd_Screen10 0xf40a 654 #define KS_Cmd_Screen11 0xf40b 655 #define KS_Cmd_Debugger 0xf420 656 #define KS_Cmd_ResetEmul 0xf421 657 #define KS_Cmd_ResetClose 0xf422 658 #define KS_Cmd_BacklightOn 0xf423 659 #define KS_Cmd_BacklightOff 0xf424 660 #define KS_Cmd_BacklightToggle 0xf425 661 #define KS_Cmd_BrightnessUp 0xf426 662 #define KS_Cmd_BrightnessDown 0xf427 663 #define KS_Cmd_BrightnessRotate 0xf428 664 #define KS_Cmd_ContrastUp 0xf429 665 #define KS_Cmd_ContrastDown 0xf42a 666 #define KS_Cmd_ContrastRotate 0xf42b 667 #define KS_Cmd_ScrollBack 0xf42c 668 #define KS_Cmd_ScrollFwd 0xf42d 669 #define KS_Cmd_KbdReset 0xf42e 670 #define KS_Cmd_Sleep 0xf42f 671 672 /* 673 * Group 5 (internal) 674 */ 675 676 #define KS_voidSymbol 0xf500 677 678 /*ENDKEYSYMDECL*/ 679 680 /* 681 * keysym groups 682 */ 683 684 #define KS_GROUP_Mod 0xf100 685 #define KS_GROUP_Keypad 0xf200 686 #define KS_GROUP_Function 0xf300 687 #define KS_GROUP_Command 0xf400 688 #define KS_GROUP_Internal 0xf500 689 #define KS_GROUP_Dead 0xf801 /* not encoded in keysym */ 690 #define KS_GROUP_Ascii 0xf802 /* not encoded in keysym */ 691 #define KS_GROUP_Keycode 0xf803 /* not encoded in keysym */ 692 693 #define KS_NUMKEYCODES 0x1000 694 #define KS_KEYCODE(v) ((v) | 0xe000) 695 696 #define KS_GROUP(k) ((k) >= 0x0300 && (k) < 0x0370 ? KS_GROUP_Dead : \ 697 (((k) & 0xf000) == 0xe000 ? KS_GROUP_Keycode : \ 698 (((k) & 0xf800) == 0xf000 ? ((k) & 0xff00) : \ 699 KS_GROUP_Ascii))) 700 701 #define KS_VALUE(k) (((k) & 0xf000) == 0xe000 ? ((k) & 0x0fff) : \ 702 (((k) & 0xf800) == 0xf000 ? ((k) & 0x00ff) : (k))) 703 704 /* 705 * Keyboard types: 8bit encoding, 24bit variant 706 */ 707 708 #define KB_ENCODING(e) ((e) & 0x0000ff00) 709 #define KB_VARIANT(e) ((e) & 0xffff00ff) 710 711 #define KB_NONE 0x0000 712 #define KB_USER 0x0100 713 #define KB_US 0x0200 714 #define KB_DE 0x0300 715 #define KB_DK 0x0400 716 #define KB_IT 0x0500 717 #define KB_FR 0x0600 718 #define KB_UK 0x0700 719 #define KB_JP 0x0800 720 #define KB_SV 0x0900 721 #define KB_NO 0x0a00 722 #define KB_ES 0x0b00 723 #define KB_HU 0x0c00 724 #define KB_BE 0x0d00 725 #define KB_RU 0x0e00 726 #define KB_SG 0x0f00 727 #define KB_SF 0x1000 728 #define KB_PT 0x1100 729 #define KB_UA 0x1200 730 #define KB_LT 0x1300 731 #define KB_LA 0x1400 732 #define KB_BR 0x1500 733 #define KB_NL 0x1600 734 #define KB_TR 0x1700 735 #define KB_PL 0x1800 736 #define KB_SI 0x1900 737 #define KB_CF 0x1a00 738 #define KB_LV 0x1b00 739 #define KB_IS 0x1c00 740 #define KB_EE 0x1d00 741 742 #define KB_NODEAD 0x00000001 /* disable dead accents */ 743 #define KB_DECLK 0x00000002 /* DEC LKnnn layout */ 744 #define KB_LK401 0x00000004 /* DEC LK401 instead LK201 */ 745 #define KB_SWAPCTRLCAPS 0x00000008 /* swap Left-Control and Caps-Lock */ 746 #define KB_DVORAK 0x00000010 /* Dvorak layout */ 747 #define KB_METAESC 0x00000020 /* generate ESC prefix on ALT-key */ 748 #define KB_IOPENER 0x00000040 /* f1-f12 -> ESC,f1-f11 */ 749 #define KB_NOENCODING 0x00000080 /* no encodings available */ 750 #define KB_APPLE 0x00010000 /* Apple specific layout */ 751 #define KB_COLEMAK 0x02000000 /* Colemak layout */ 752 #define KB_DEFAULT 0x80000000 /* (attach-only) default layout */ 753 754 #define KB_ENCTAB \ 755 { KB_USER, "user" }, \ 756 { KB_US, "us" }, \ 757 { KB_DE, "de" }, \ 758 { KB_DK, "dk" }, \ 759 { KB_IT, "it" }, \ 760 { KB_FR, "fr" }, \ 761 { KB_UK, "uk" }, \ 762 { KB_JP, "jp" }, \ 763 { KB_SV, "sv" }, \ 764 { KB_NO, "no" }, \ 765 { KB_ES, "es" }, \ 766 { KB_HU, "hu" }, \ 767 { KB_BE, "be" }, \ 768 { KB_RU, "ru" }, \ 769 { KB_UA, "ua" }, \ 770 { KB_SG, "sg" }, \ 771 { KB_SF, "sf" }, \ 772 { KB_PT, "pt" }, \ 773 { KB_LT, "lt" }, \ 774 { KB_LA, "la" }, \ 775 { KB_BR, "br" }, \ 776 { KB_NL, "nl" }, \ 777 { KB_TR, "tr" }, \ 778 { KB_PL, "pl" }, \ 779 { KB_SI, "si" }, \ 780 { KB_CF, "cf" }, \ 781 { KB_LV, "lv" }, \ 782 { KB_IS, "is" }, \ 783 { KB_EE, "ee" } 784 785 #define KB_VARTAB \ 786 { KB_NODEAD, "nodead" }, \ 787 { KB_DECLK, "declk" }, \ 788 { KB_LK401, "lk401" }, \ 789 { KB_SWAPCTRLCAPS, "swapctrlcaps" }, \ 790 { KB_DVORAK, "dvorak" }, \ 791 { KB_METAESC, "metaesc" }, \ 792 { KB_IOPENER, "iopener" }, \ 793 { KB_NOENCODING, "noencoding" }, \ 794 { KB_APPLE, "apple" }, \ 795 { KB_COLEMAK, "colemak" } 796 797 #endif /* !_DEV_WSCONS_WSKSYMDEF_H_ */ 798