telnet.cfg
上传用户:haiweijt
上传日期:2018-02-23
资源大小:8195k
文件大小:96k
源码类别:

Telnet服务器

开发平台:

Visual C++

  1. ; Console Telnet 2.0 keys.cfg
  2. ;
  3. [comment]
  4. This is a completely rewritten configuration file for Console Telnet 2.0.
  5. Now you can define multiple keymaps, character maps, and combine them in your
  6. own ways.
  7. Possible definition:
  8.  [COMMENT]
  9.  ...
  10.  [END COMMENT]
  11.         This is for commenting a big part of text. can be nested.
  12.         In text these also work:
  13.            ; - First printable character in line, which is completely
  14.                ignored.
  15.            // - Like C++ comment
  16.  [GLOBAL]
  17.  ...
  18.  [END GLOBAL]
  19.         This part is required.  For an explanation look at the body.
  20.  [KEYMAP name]
  21.  ...
  22.  [END KEYMAP]
  23.         'name' - is a keymap name for reference.  In 'name' you can use
  24.         any char exept spaces, '+', ':' and ']'. '+' and ':' reserved for
  25.         CONFIG section.
  26.         Body is a sequence of key definitions:
  27.            <vk_name> [keymodifier[+keymodifier[+...]]] <keytranslation>
  28.         example:
  29.            VK_F1 RIGHT_ALT+RIGHT_CTRL this_would_print
  30.         vk_name is an ASCII string equivalent to an entry in [GLOBAL].
  31.         Valid keymodifiers are:
  32.           RIGHT_ALT
  33.           LEFT_ALT
  34.           RIGHT_CTRL
  35.           LEFT_CTRL
  36.           SHIFT
  37.           ENHANCED
  38.           NUMLOCK
  39.           CAPSLOCK
  40.           SCROLLLOCK
  41.           APP_KEY
  42.           APP2_KEY
  43.           APP3_KEY
  44.           APP4_KEY
  45.         Undefined enhanced keys will use the non-enhanced definition.
  46.         APP_KEY, APP2_KEY, and APP3_KEY are application-specific key modes.
  47.         Other terminal emulations (which have not yet been implemented) may
  48.         use other definitions for these keys, but for the standard ANSI
  49.         emulation, these mean:
  50.                 APP_KEY - VT100 application cursor keys
  51.                 APP2_KEY - VT52 cursor keys
  52.                 APP3_KEY - VT102 alternate keypad mode
  53.                 APP4_KEY - VT100 newline mode set
  54.         keytranslation is the string you want printed for the key.
  55.         The notation ^[ can be used to denote an escape character.
  56.         Any ASCII value can be represented by
  57.             nnn where nnn is a 3 digit decimal ASCII value or
  58.             xhh where hh is a 2 digit hexadecimal ASCII value.
  59.         Leading zeros may not be omitted.
  60.         A value of 00(x00) will not be transmitted.
  61. Rather, if you put 00 you undefine a key.  If you must send a NULL character,
  62. please use TN_NULL.
  63. A word on special sequences:
  64. Any sequence of the form: TN_... is a special sequence, which will perform a
  65. special function for telnet.  You may substitute one of these for keytranslation
  66. for any key.  Some of the special sequences that telnet recognizes:
  67. TN_ESCAPE              Escape into the telnet client
  68. TN_SCROLLBACK          Go into the scrollback buffer
  69. TN_DIAL                Start a new telnet session
  70. TN_PASTE               Paste the contents of the clipboard to the server
  71. TN_NULL                Send a null sequence to the server
  72. TN_CR                  Send rNULL to the server
  73. TN_CRLF                Send rn to the server
  74.         note: In order to have both left and right alt have the same
  75.         action, you must create a separate def for left and right.
  76.  [CHARMAP name]
  77.  ...
  78.  [END CHARMAP]
  79.         'name' - is a charmap name for reference.  Requirements are the same
  80.         as for keymap name.
  81.         body is a sequence of char conversion definition:
  82.            <host_char> <console_char>
  83.         where host_char is a char received from host, and console_char
  84.         is a char, which would be displayed on console.
  85.         The main purpose of it is a conversion between differents code
  86.         pages, for example, on former USSR part of world most unix's hosts
  87.         uses 'koi8' code page, and on W95 machines - 866 code page.
  88.         Any ASCII value can be represented by
  89.             nnn where nnn is a 3 digit decimal ASCII value or
  90.             xhh where hh is a 2 digit hexadecimal ASCII value.
  91.         Leading zeros may be omitted.
  92.         A value of 00(x00) will not be accepted.
  93.         Look for example at [charmap koi8-cp866].
  94.  [CONFIG name]
  95.  ...
  96.  [END CONFIG]
  97.         'name' - is a configuration name for reference.  Requirements are
  98.         the same as for keymap name.
  99.         You must define one with name 'default', which will be used as
  100.         default.
  101.         In the body of this section you can combine keymaps and set
  102.         the charmap.  The format for this is:
  103.            KEYMAP name_list [: <vk_name> [keymodifier[+keymodifier[+...]]] ]
  104.              where
  105.                   name_list:
  106.                      keymap_name
  107.                      keymap_name '+' name_list
  108.                   keymap_name is a name of [KEYMAP]
  109.              You can specify multiple keymaps, for first (the default)
  110.              you can not define ': <vk_name> ...' part, but for the rest
  111.              (secondary) you must!
  112.              The ': <vk_name> ...' part defines a key for switch to this
  113.              keymap.
  114.              Assigning a switching key to the first (default) keymap will be
  115.              ignored, but you can switch to by pressing a second time the
  116.              switch key for the current keymap.
  117.              If a key is not found in a switched keymap, a program will
  118.              look for it in the default keymap. So, you only need to redefine
  119.              needed keys in secondary keymaps.
  120.            CHARMAP name
  121.              define which charmap is to use.
  122.            examples:
  123.               [config default]
  124.                  keymap default
  125.               [end config]
  126.               [config linux]
  127.                  keymap default + linux
  128.               [end config]
  129.               [config default_koi8]
  130.                  keymap default
  131.                  keymap koi8u + koi8r : VK_/ RIGHT_ALT // russian keyboard
  132.                  keymap koi8u         : VK_. RIGHT_ALT // ukranian
  133.                  charmap koi8-cp866
  134.               [end config]
  135.               [config linux_koi8]
  136.                  keymap default + linux
  137.                  keymap koi8u + koi8r : VK_/ RIGHT_ALT // russian keyboard
  138.                  keymap koi8u         : VK_. RIGHT_ALT // ukranian
  139.                  charmap koi8-cp866
  140.               [end config]
  141.             For switching to russian keyboard just press RIGHT_ALT and '/'.
  142.             To switch back press it again.
  143. [end comment]
  144. [GLOBAL]
  145. ; DO NOT MODIFY THE GLOBALS UNLESS YOU KNOW WHAT YOU ARE DOING.
  146. ; The globals are required for the key translation to work.
  147. ; do not place keymap before globals
  148. VK_LBUTTON    01    Left mouse button
  149. VK_RBUTTON    02    Right mouse button
  150. VK_CANCEL     03    Control-break processing
  151. VK_MBUTTON    04    Middle mouse button (three-button mouse)
  152. ;--         05-07   Undefined
  153. VK_BACK       08    BACKSPACE key
  154. VK_TAB        09    TAB key
  155. ;--         10-11   Undefined
  156. VK_CLEAR      12    CLEAR key
  157. VK_RETURN     13    ENTER key
  158. ;--         14-15   Undefined
  159. ;VK_SHIFT     16    SHIFT key
  160. ;VK_CONTROL   17    CTRL key
  161. ;VK_MENU      18    ALT key
  162. VK_PAUSE      19    PAUSE key
  163. ;VK_CAPITAL   20    CAPS LOCK key
  164. ;--         21-25   Reserved for Kanji systems
  165. ;--           26    Undefined
  166. VK_ESCAPE     27    ESC key
  167. ;--         28-31   Reserved for Kanji systems
  168. VK_SPACE      32    SPACEBAR
  169. VK_PGUP       33    PAGE UP key
  170. VK_PGDN       34    PAGE DOWN key
  171. VK_END        35    END key
  172. VK_HOME       36    HOME key
  173. VK_LEFT       37    LEFT ARROW key
  174. VK_UP         38    UP ARROW key
  175. VK_RIGHT      39    RIGHT ARROW key
  176. VK_DOWN       40    DOWN ARROW key
  177. VK_SELECT     41    SELECT key
  178. ;--           42    Original equipment manufacturer (OEM) specific
  179. VK_EXECUTE    43    EXECUTE key
  180. VK_SNAPSHOT   44    PRINT SCREEN key for Windows 3.0 and later
  181. VK_INSERT     45    INS key
  182. VK_DELETE     46    DEL key
  183. VK_HELP       47    HELP key
  184. VK_0          48    0 key
  185. VK_1          49    1 key
  186. VK_2          50    2 key
  187. VK_3          51    3 key
  188. VK_4          52    4 key
  189. VK_5          53    5 key
  190. VK_6          54    6 key
  191. VK_7          55    7 key
  192. VK_8          56    8 key
  193. VK_9          57    9 key
  194. ;--         58-64   Undefined
  195. VK_A          65    A key
  196. VK_B          66    B key
  197. VK_C          67    C key
  198. VK_D          68    D key
  199. VK_E          69    E key
  200. VK_F          70    F key
  201. VK_G          71    G key
  202. VK_H          72    H key
  203. VK_I          73    I key
  204. VK_J          74    J key
  205. VK_K          75    K key
  206. VK_L          76    L key
  207. VK_M          77    M key
  208. VK_N          78    N key
  209. VK_O          79    O key
  210. VK_P          80    P key
  211. VK_Q          81    Q key
  212. VK_R          82    R key
  213. VK_S          83    S key
  214. VK_T          84    T key
  215. VK_U          85    U key
  216. VK_V          86    V key
  217. VK_W          87    W key
  218. VK_X          88    X key
  219. VK_Y          89    Y key
  220. VK_Z          90    Z key
  221. ;--          91-95  Undefined
  222. VK_NUMPAD0    96    Numeric keypad 0 key
  223. VK_NUMPAD1    97    Numeric keypad 1 key
  224. VK_NUMPAD2    98    Numeric keypad 2 key
  225. VK_NUMPAD3    99    Numeric keypad 3 key
  226. VK_NUMPAD4    100   Numeric keypad 4 key
  227. VK_NUMPAD5    101   Numeric keypad 5 key
  228. VK_NUMPAD6    102   Numeric keypad 6 key
  229. VK_NUMPAD7    103   Numeric keypad 7 key
  230. VK_NUMPAD8    104   Numeric keypad 8 key
  231. VK_NUMPAD9    105   Numeric keypad 9 key
  232. VK_MULTIPLY   106   Multiply key
  233. VK_ADD        107   Add key
  234. VK_SEPARATOR  108   Separator key
  235. VK_SUBTRACT   109   Subtract key
  236. VK_DECIMAL    110   Decimal key
  237. VK_DIVIDE     111   Divide key
  238. VK_F1         112   F1 key
  239. VK_F2         113   F2 key
  240. VK_F3         114   F3 key
  241. VK_F4         115   F4 key
  242. VK_F5         116   F5 key
  243. VK_F6         117   F6 key
  244. VK_F7         118   F7 key
  245. VK_F8         119   F8 key
  246. VK_F9         120   F9 key
  247. VK_F10        121   F10 key
  248. VK_F11        122   F11 key
  249. VK_F12        123   F12 key
  250. VK_F13        124   F13 key
  251. VK_F14        125   F14 key
  252. VK_F15        126   F15 key
  253. VK_F16        127   F16 key
  254. VK_F17        128   F17 key
  255. VK_F18        129   F18 key
  256. VK_F19        130   F19 key
  257. VK_F20        131   F20 key
  258. VK_F21        132   F21 key
  259. VK_F22        133   F22 key
  260. VK_F23        134   F23 key
  261. VK_F24        135   F24 key
  262. ;--         136-143 Unassigned
  263. VK_NUMLOCK    144   NUM LOCK key
  264. VK_SCROLL     145   SCROLL LOCK key
  265. ;--         146-185 Unassigned
  266. ;
  267. ;
  268. ;  John Ioannou (roryt@hol.gr)
  269. ;     Athens 30/03/97 10:42pm GMT-2
  270. ;  Correction for Win95
  271. ;
  272. ; This keys are used (at least in my keyboard -737/437 cp)
  273. ; for some common keys (equal, slash, backslash etc).
  274. ; Normally we don't want to define them, but
  275. ; there is a bug with win95 with them :
  276. ; with CAPS LOCK on they produce the SHIFTED character
  277. ; (minus gives _, = gives + etc).
  278. ;
  279. ;
  280. ;--         186-192 OEM specific
  281. VK_;          186   ;
  282. VK_=          187   EQUAL
  283. VK_,          188   ,
  284. VK_-          189   MINUS
  285. VK_.          190   FULLSTOP
  286. VK_/          191   SLASH
  287. VK_`          192   `
  288. ;--         193-218 Unassigned
  289. ;--         219-228 OEM specific
  290. VK_[          219   [
  291. VK_          220   BACKSLASH
  292. VK_]          221   ]
  293. VK_'          222   '
  294. ;--          229    Unassigned
  295. ;--          230    OEM specific
  296. ;--         231-232 Unassigned
  297. ;--         233-245 OEM specific
  298. ;--         246-254 Unassigned
  299. [END GLOBAL]
  300. [keymap ANSI]
  301. ;
  302. ;  John Ioannou (roryt@hol.gr)
  303. ;     Athens 30/03/97 10:42pm GMT-2
  304. ;
  305. ;        these are full (SCO and not only) ANSI
  306. ;        also they deal with the win95 bug and
  307. ;        give support for the Midnight Commander
  308. ;
  309. ;
  310. ;  function keys
  311. ;
  312. VK_F1                                  ^[[M
  313. VK_F2                                  ^[[N
  314. VK_F3                                  ^[[O
  315. VK_F4                                  ^[[P
  316. VK_F5                                  ^[[Q
  317. VK_F6                                  ^[[R
  318. VK_F7                                  ^[[S
  319. VK_F8                                  ^[[T
  320. VK_F9                                  ^[[U
  321. VK_F10                                 ^[[V
  322. VK_F11                                 ^[[W
  323. VK_F12                                 ^[[X
  324. VK_F1            SHIFT                 ^[[Y
  325. VK_F2            SHIFT                 ^[[Z
  326. VK_F3            SHIFT                 ^[[a
  327. VK_F4            SHIFT                 ^[[b
  328. VK_F5            SHIFT                 ^[[c
  329. VK_F6            SHIFT                 ^[[d
  330. VK_F7            SHIFT                 ^[[e
  331. VK_F8            SHIFT                 ^[[f
  332. VK_F9            SHIFT                 ^[[g
  333. VK_F10           SHIFT                 ^[[h
  334. VK_F11           SHIFT                 ^[[i
  335. VK_F12           SHIFT                 ^[[j
  336. VK_F1            RIGHT_CTRL            ^[[k
  337. VK_F2            RIGHT_CTRL            ^[[l
  338. VK_F3            RIGHT_CTRL            ^[[m
  339. VK_F4            RIGHT_CTRL            ^[[n
  340. VK_F5            RIGHT_CTRL            ^[[o
  341. VK_F6            RIGHT_CTRL            ^[[p
  342. VK_F7            RIGHT_CTRL            ^[[q
  343. VK_F8            RIGHT_CTRL            ^[[r
  344. VK_F9            RIGHT_CTRL            ^[[s
  345. VK_F10           RIGHT_CTRL            ^[[t
  346. VK_F11           RIGHT_CTRL            ^[[y
  347. VK_F12           RIGHT_CTRL            ^[[v
  348. VK_F1            LEFT_CTRL             ^[[k
  349. VK_F2            LEFT_CTRL             ^[[l
  350. VK_F3            LEFT_CTRL             ^[[m
  351. VK_F4            LEFT_CTRL             ^[[n
  352. VK_F5            LEFT_CTRL             ^[[o
  353. VK_F6            LEFT_CTRL             ^[[p
  354. VK_F7            LEFT_CTRL             ^[[q
  355. VK_F8            LEFT_CTRL             ^[[r
  356. VK_F9            LEFT_CTRL             ^[[s
  357. VK_F10           LEFT_CTRL             ^[[t
  358. VK_F11           LEFT_CTRL             ^[[y
  359. VK_F12           LEFT_CTRL             ^[[v
  360. ;
  361. ;  misc fuctions
  362. ;
  363. ; FIX ME!!!  Some people have reported that these keys don't work.
  364. VK_SCROLL                              17
  365. VK_PAUSE                               19
  366. VK_INSERT                              ^[[L
  367. VK_DELETE        ENHANCED              127
  368. VK_HOME                                ^[[H
  369. VK_PGUP                                ^[[I
  370. VK_PGDN                                ^[[G
  371. VK_END                                 ^[[F
  372. VK_INSERT        SHIFT                 ^[[L
  373. VK_DELETE        SHIFT+ENHANCED        127
  374. VK_HOME          SHIFT                 ^[[H
  375. VK_PGUP          SHIFT                 ^[[I
  376. VK_PGDN          SHIFT                 ^[[G
  377. VK_END           SHIFT                 ^[[F
  378. ;
  379. ; arrows
  380. ;
  381. VK_LEFT                                ^[[D
  382. VK_UP                                  ^[[A
  383. VK_RIGHT                               ^[[C
  384. VK_DOWN                                ^[[B
  385. VK_LEFT          SHIFT                 ^[[D
  386. VK_UP            SHIFT                 ^[[A
  387. VK_RIGHT         SHIFT                 ^[[C
  388. VK_DOWN          SHIFT                 ^[[B
  389. ;
  390. ; just in case !!!
  391. ;
  392. VK_ESCAPE        SHIFT                 27
  393. VK_TAB                                 09
  394. VK_TAB           SHIFT                 ^[[Z^[[Z
  395. ;
  396. ;---------------------------------------
  397. ;      Athens  30/03/97 10:55pm GMT+2
  398. ;  Correction for Win95
  399. ;
  400. VK_6             SHIFT                 94
  401. VK_`                                   `
  402. VK_`             SHIFT                 ~
  403. VK_0             CAPSLOCK              0
  404. VK_1             CAPSLOCK              1
  405. VK_2             CAPSLOCK              2
  406. VK_3             CAPSLOCK              3
  407. VK_4             CAPSLOCK              4
  408. VK_5             CAPSLOCK              5
  409. VK_6             CAPSLOCK              6
  410. VK_7             CAPSLOCK              7
  411. VK_8             CAPSLOCK              8
  412. VK_9             CAPSLOCK              9
  413. VK_ESCAPE        CAPSLOCK              27
  414. VK_`             CAPSLOCK              `
  415. VK_=             CAPSLOCK              =
  416. VK_-             CAPSLOCK              -
  417. VK_             CAPSLOCK              
  418. VK_[             CAPSLOCK              [
  419. VK_]             CAPSLOCK              ]
  420. VK_;             CAPSLOCK              ;
  421. VK_'             CAPSLOCK              '
  422. VK_,             CAPSLOCK              ,
  423. VK_.             CAPSLOCK              .
  424. VK_/             CAPSLOCK              /
  425. VK_0             CAPSLOCK+SHIFT        )
  426. VK_1             CAPSLOCK+SHIFT        !
  427. VK_2             CAPSLOCK+SHIFT        @
  428. VK_3             CAPSLOCK+SHIFT        #
  429. VK_4             CAPSLOCK+SHIFT        $
  430. VK_5             CAPSLOCK+SHIFT        %
  431. VK_6             CAPSLOCK+SHIFT        ^
  432. VK_7             CAPSLOCK+SHIFT        &
  433. VK_8             CAPSLOCK+SHIFT        *
  434. VK_9             CAPSLOCK+SHIFT        (
  435. VK_ESCAPE        CAPSLOCK+SHIFT        27
  436. VK_`             CAPSLOCK+SHIFT        ~
  437. VK_=             CAPSLOCK+SHIFT        +
  438. VK_-             CAPSLOCK+SHIFT        _
  439. VK_             CAPSLOCK+SHIFT        |
  440. VK_[             CAPSLOCK+SHIFT        {
  441. VK_]             CAPSLOCK+SHIFT        }
  442. VK_;             CAPSLOCK+SHIFT        :
  443. VK_'             CAPSLOCK+SHIFT        "
  444. VK_,             CAPSLOCK+SHIFT        <
  445. VK_.             CAPSLOCK+SHIFT        >
  446. VK_/             CAPSLOCK+SHIFT        ?
  447. ;
  448. ;
  449. ;---------------------------------------
  450. ;
  451. ; These are for use with Midnight Commander
  452. ; they map Meta key to ALT (Like Linux console, nice isn't it ? )
  453. ;
  454. VK_0             RIGHT_ALT             ^[0
  455. VK_1             RIGHT_ALT             ^[1
  456. VK_2             RIGHT_ALT             ^[2
  457. VK_3             RIGHT_ALT             ^[3
  458. VK_4             RIGHT_ALT             ^[4
  459. VK_5             RIGHT_ALT             ^[5
  460. VK_6             RIGHT_ALT             ^[6
  461. VK_7             RIGHT_ALT             ^[7
  462. VK_8             RIGHT_ALT             ^[8
  463. VK_9             RIGHT_ALT             ^[9
  464. VK_A             RIGHT_ALT             ^[A
  465. VK_B             RIGHT_ALT             ^[B
  466. VK_C             RIGHT_ALT             ^[C
  467. VK_D             RIGHT_ALT             ^[D
  468. VK_E             RIGHT_ALT             ^[E
  469. VK_F             RIGHT_ALT             ^[F
  470. VK_G             RIGHT_ALT             ^[G
  471. VK_H             RIGHT_ALT             ^[H
  472. VK_I             RIGHT_ALT             ^[I
  473. VK_J             RIGHT_ALT             ^[J
  474. VK_K             RIGHT_ALT             ^[K
  475. VK_L             RIGHT_ALT             ^[L
  476. VK_M             RIGHT_ALT             ^[M
  477. VK_N             RIGHT_ALT             ^[N
  478. VK_O             RIGHT_ALT             ^[O
  479. VK_P             RIGHT_ALT             ^[P
  480. VK_Q             RIGHT_ALT             ^[Q
  481. VK_R             RIGHT_ALT             ^[R
  482. VK_S             RIGHT_ALT             ^[S
  483. VK_T             RIGHT_ALT             ^[T
  484. VK_U             RIGHT_ALT             ^[U
  485. VK_V             RIGHT_ALT             ^[V
  486. VK_W             RIGHT_ALT             ^[W
  487. VK_X             RIGHT_ALT             ^[X
  488. VK_Y             RIGHT_ALT             ^[Y
  489. VK_Z             RIGHT_ALT             ^[Z
  490. VK_0             LEFT_ALT              ^[0
  491. VK_1             LEFT_ALT              ^[1
  492. VK_2             LEFT_ALT              ^[2
  493. VK_3             LEFT_ALT              ^[3
  494. VK_4             LEFT_ALT              ^[4
  495. VK_5             LEFT_ALT              ^[5
  496. VK_6             LEFT_ALT              ^[6
  497. VK_7             LEFT_ALT              ^[7
  498. VK_8             LEFT_ALT              ^[8
  499. VK_9             LEFT_ALT              ^[9
  500. VK_A             LEFT_ALT              ^[a
  501. VK_B             LEFT_ALT              ^[b
  502. VK_C             LEFT_ALT              ^[c
  503. VK_D             LEFT_ALT              ^[d
  504. VK_E             LEFT_ALT              ^[e
  505. VK_F             LEFT_ALT              ^[f
  506. VK_G             LEFT_ALT              ^[g
  507. VK_H             LEFT_ALT              ^[h
  508. VK_I             LEFT_ALT              ^[i
  509. VK_J             LEFT_ALT              ^[j
  510. VK_K             LEFT_ALT              ^[k
  511. VK_L             LEFT_ALT              ^[l
  512. VK_M             LEFT_ALT              ^[m
  513. VK_N             LEFT_ALT              ^[n
  514. VK_O             LEFT_ALT              ^[o
  515. VK_P             LEFT_ALT              ^[p
  516. VK_Q             LEFT_ALT              ^[q
  517. VK_R             LEFT_ALT              ^[r
  518. VK_S             LEFT_ALT              ^[s
  519. VK_T             LEFT_ALT              ^[t
  520. VK_U             LEFT_ALT              ^[u
  521. VK_V             LEFT_ALT              ^[v
  522. VK_W             LEFT_ALT              ^[w
  523. VK_X             LEFT_ALT              ^[x
  524. VK_Y             LEFT_ALT              ^[y
  525. VK_Z             LEFT_ALT              ^[z
  526. VK_RETURN        RIGHT_CTRL            TN_CR
  527. VK_RETURN        LEFT_CTRL             TN_CR
  528. ; VK_RETURN now sends CR except in newline mode (Paul Brannan 12/9/98)
  529. VK_RETURN                              TN_CR
  530. VK_RETURN        APP4_KEY              TN_CRLF
  531. VK_RETURN        ENHANCED              TN_CR
  532. ; This is for application cursor keys (Paul Brannan 5/27/98)
  533. VK_LEFT       APP_KEY                  ^[OD
  534. VK_UP         APP_KEY                  ^[OA
  535. VK_RIGHT      APP_KEY                  ^[OC
  536. VK_DOWN       APP_KEY                  ^[OB
  537. VK_LEFT       APP_KEY+SHIFT            ^[OD
  538. VK_UP         APP_KEY+SHIFT            ^[OA
  539. VK_RIGHT      APP_KEY+SHIFT            ^[OC
  540. VK_DOWN       APP_KEY+SHIFT            ^[OB
  541. ; APP2_KEY is for VT52 support (Paul Brannan 6/28/98)
  542. VK_LEFT       APP2_KEY                 ^[D
  543. VK_UP         APP2_KEY                 ^[A
  544. VK_RIGHT      APP2_KEY                 ^[C
  545. VK_DOWN       APP2_KEY                 ^[B
  546. VK_LEFT       APP2_KEY+SHIFT           ^[D
  547. VK_UP         APP2_KEY+SHIFT           ^[A
  548. VK_RIGHT      APP2_KEY+SHIFT           ^[C
  549. VK_DOWN       APP2_KEY+SHIFT           ^[B
  550. VK_F1         APP2_KEY                 ^[P
  551. VK_F2         APP2_KEY                 ^[Q
  552. VK_F3         APP2_KEY                 ^[R
  553. VK_F4         APP2_KEY                 ^[S
  554. VK_F5         APP2_KEY                 ^[?w
  555. VK_F6         APP2_KEY                 ^[?x
  556. VK_F7         APP2_KEY                 ^[?y
  557. VK_F8         APP2_KEY                 ^[?m
  558. VK_F9         APP2_KEY                 ^[?t
  559. VK_F10        APP2_KEY                 ^[?u
  560. VK_F1         APP2_KEY+SHIFT           ^[?v
  561. VK_F2         APP2_KEY+SHIFT           ^[?l
  562. VK_F3         APP2_KEY+SHIFT           ^[?q
  563. VK_F4         APP2_KEY+SHIFT           ^[?r
  564. VK_F5         APP2_KEY+SHIFT           ^[?s
  565. VK_F6         APP2_KEY+SHIFT           ^[?M
  566. VK_F7         APP2_KEY+SHIFT           ^[?p
  567. VK_F8         APP2_KEY+SHIFT           ^[?n
  568. ; Fix for the numeric decimal key (Paul Brannan 9/23/98)
  569. VK_DELETE                              127
  570. VK_DELETE     NUMLOCK                  .
  571. VK_DELETE     NUMLOCK+SHIFT            127
  572. ; VT100 Application keypad mode (Paul Brannan 12/8/98)
  573. VK_NUMPAD0      APP3_KEY                ^[Op
  574. VK_NUMPAD1      APP3_KEY                ^[Oq
  575. VK_NUMPAD2      APP3_KEY                ^[Or
  576. VK_NUMPAD3      APP3_KEY                ^[Os
  577. VK_NUMPAD4      APP3_KEY                ^[Ot
  578. VK_NUMPAD5      APP3_KEY                ^[Ou
  579. VK_NUMPAD6      APP3_KEY                ^[Ov
  580. VK_NUMPAD7      APP3_KEY                ^[Ow
  581. VK_NUMPAD8      APP3_KEY                ^[Ox
  582. VK_NUMPAD9      APP3_KEY                ^[Oy
  583. VK_ADD          APP3_KEY                ^[Ol
  584. VK_SUBTRACT     APP3_KEY                ^[Om
  585. VK_DELETE       APP3_KEY                ^[On
  586. VK_RETURN       ENHANCED+APP3_KEY       ^[OM
  587. ; VT52 Application keypad mode (Paul Brannan 12/8/98)
  588. VK_NUMPAD0      APP2_KEY+APP3_KEY       ^[?p
  589. VK_NUMPAD1      APP2_KEY+APP3_KEY       ^[?q
  590. VK_NUMPAD2      APP2_KEY+APP3_KEY       ^[?r
  591. VK_NUMPAD3      APP2_KEY+APP3_KEY       ^[?s
  592. VK_NUMPAD4      APP2_KEY+APP3_KEY       ^[?t
  593. VK_NUMPAD5      APP2_KEY+APP3_KEY       ^[?u
  594. VK_NUMPAD6      APP2_KEY+APP3_KEY       ^[?v
  595. VK_NUMPAD7      APP2_KEY+APP3_KEY       ^[?w
  596. VK_NUMPAD8      APP2_KEY+APP3_KEY       ^[?x
  597. VK_NUMPAD9      APP2_KEY+APP3_KEY       ^[?y
  598. VK_ADD          APP2_KEY+APP3_KEY       ^[?l
  599. VK_SUBTRACT     APP2_KEY+APP3_KEY       ^[?m
  600. VK_DELETE       APP2_KEY+APP3_KEY       ^[?n
  601. VK_RETURN    ENHANCED+APP2_KEY+APP3_KEY ^[?M
  602. ; Extra control characters (Paul Brannan 12/10/98)
  603. VK_2            LEFT_CTRL               x00x00
  604. VK_2            RIGHT_CTRL              x00x00
  605. VK_6            LEFT_CTRL               x1e
  606. VK_6            RIGHT_CTRL              x1e
  607. VK_-            LEFT_CTRL               x1f
  608. VK_-            RIGHT_CTRL              x1f
  609. ; A way to send the null Character (Paul Brannan 3/29/00)
  610. VK_SPACE LEFT_CTRL TN_NULL
  611. VK_SPACE RIGHT_CTRL TN_NULL
  612. [END keymap] // ansi
  613. [keymap LINUX]
  614. ;
  615. ;
  616. ;  John Ioannou (roryt@hol.gr)
  617. ;     Athens 12 April 1997
  618. ;
  619. ;      Linux keys
  620. ;
  621. ;  Andrew Smilianets (smile@head.aval.kiev.ua)
  622. ;     Kiev 23 December 1997
  623. ;
  624. ;      duplicated with default stripped, so, to use it, declare
  625. ;           keymap default+linux
  626. ;
  627. ;  function keys
  628. ;
  629. VK_F1                                  ^[[[A
  630. VK_F2                                  ^[[[B
  631. VK_F3                                  ^[[[C
  632. VK_F4                                  ^[[[D
  633. VK_F5                                  ^[[[E
  634. VK_F6                                  ^[[17~
  635. VK_F7                                  ^[[18~
  636. VK_F8                                  ^[[19~
  637. VK_F9                                  ^[[20~
  638. VK_F10                                 ^[[21~
  639. VK_F11                                 ^[[23~
  640. VK_F12                                 ^[[24~
  641. VK_F1            SHIFT                 ^[[23~
  642. VK_F2            SHIFT                 ^[[24~
  643. VK_F3            SHIFT                 ^[[25~
  644. VK_F4            SHIFT                 ^[[26~
  645. VK_F5            SHIFT                 ^[[28~
  646. VK_F6            SHIFT                 ^[[29~
  647. VK_F7            SHIFT                 ^[[31~
  648. VK_F8            SHIFT                 ^[[32~
  649. VK_F9            SHIFT                 ^[[33~
  650. VK_F10           SHIFT                 ^[[34~
  651. VK_F11           SHIFT                 ^[[23~
  652. VK_F12           SHIFT                 ^[[24~
  653. VK_F1            RIGHT_CTRL            ^[[[A
  654. VK_F2            RIGHT_CTRL            ^[[[B
  655. VK_F3            RIGHT_CTRL            ^[[[C
  656. VK_F4            RIGHT_CTRL            ^[[[D
  657. VK_F5            RIGHT_CTRL            ^[[[E
  658. VK_F6            RIGHT_CTRL            ^[[17~
  659. VK_F7            RIGHT_CTRL            ^[[18~
  660. VK_F8            RIGHT_CTRL            ^[[19~
  661. VK_F9            RIGHT_CTRL            ^[[20~
  662. VK_F10           RIGHT_CTRL            ^[[21~
  663. VK_F11           RIGHT_CTRL            ^[[23~
  664. VK_F12           RIGHT_CTRL            ^[[24~
  665. VK_F1            LEFT_CTRL             ^[[[A
  666. VK_F2            LEFT_CTRL             ^[[[B
  667. VK_F3            LEFT_CTRL             ^[[[C
  668. VK_F4            LEFT_CTRL             ^[[[D
  669. VK_F5            LEFT_CTRL             ^[[[E
  670. VK_F6            LEFT_CTRL             ^[[17~
  671. VK_F7            LEFT_CTRL             ^[[18~
  672. VK_F8            LEFT_CTRL             ^[[19~
  673. VK_F9            LEFT_CTRL             ^[[20~
  674. VK_F10           LEFT_CTRL             ^[[21~
  675. VK_F11           LEFT_CTRL             ^[[23~
  676. VK_F12           LEFT_CTRL             ^[[24~
  677. ;
  678. ;  misc fuctions
  679. ;
  680. VK_PAUSE                               ^[[P
  681. VK_INSERT                              ^[[2~
  682. VK_DELETE        ENHANCED              ^[[3~
  683. VK_HOME                                ^[[1~
  684. VK_PGUP                                ^[[5~
  685. VK_PGDN                                ^[[6~
  686. VK_END                                 ^[[4~
  687. VK_INSERT        SHIFT                 ^[[2~
  688. VK_DELETE        SHIFT+ENHANCED        ^[[3~
  689. VK_HOME          SHIFT                 ^[[1~
  690. VK_PGUP          SHIFT                 ^[[5~
  691. VK_PGDN          SHIFT                 ^[[6~
  692. VK_END           SHIFT                 ^[[4~
  693. VK_INSERT        LEFT_CTRL             ^[[2~
  694. VK_DELETE        LEFT_CTRL             ^[[3~
  695. VK_HOME          LEFT_CTRL             ^[[1~
  696. VK_PGUP          LEFT_CTRL             ^[[5~
  697. VK_PGDN          LEFT_CTRL             ^[[6~
  698. VK_END           LEFT_CTRL             ^[[4~
  699. VK_INSERT        RIGHT_CTRL            ^[[2~
  700. VK_DELETE        RIGHT_CTRL            ^[[3~
  701. VK_HOME          RIGHT_CTRL            ^[[1~
  702. VK_PGUP          RIGHT_CTRL            ^[[5~
  703. VK_PGDN          RIGHT_CTRL            ^[[6~
  704. VK_END           RIGHT_CTRL            ^[[4~
  705. ;
  706. ; arrows
  707. ;
  708. VK_UP            RIGHT_CTRL            ^[[A
  709. VK_DOWN          RIGHT_CTRL            ^[[B
  710. VK_RIGHT         RIGHT_CTRL            ^[[C
  711. VK_LEFT          RIGHT_CTRL            ^[[D
  712. VK_UP            LEFT_CTRL             ^[[A
  713. VK_DOWN          LEFT_CTRL             ^[[B
  714. VK_RIGHT         LEFT_CTRL             ^[[C
  715. VK_LEFT          LEFT_CTRL             ^[[D
  716. VK_NUMPAD5                             ^[[G
  717. [END keymap] // linux
  718. [keymap vt100]
  719. ; These were wrong, according to the docs I have.  They don't work with
  720. ; Midnight Commander on my machine.  I'm not sure if
  721. ; this is correct or not.  I've also changed F1 - F4 so that they
  722. ; send PF1 - PF4, and F5 - F10 so they send VT102 application mode
  723. ; DEC keypad sequences.  I changed SF1 - SF10 so they akso send DEC keypad
  724. ; sequences, and CF6 - CF12 so they send VT320 keypad sequences.
  725. ; (Paul Brannan 6/28/98)
  726. ; The numpad keys seem to be wrong, too.  This has been fixed.
  727. ; (Paul Brannan 12/8/98)
  728. VK_F1                                  ^[OP
  729. VK_F2                                  ^[OQ
  730. VK_F3                                  ^[OR
  731. VK_F4                                  ^[OS
  732. VK_F5                                  ^[Ow
  733. VK_F6                                  ^[Ox
  734. VK_F7                                  ^[Oy
  735. VK_F8                                  ^[Om
  736. VK_F9                                  ^[Ot
  737. VK_F10                                 ^[Ou
  738. VK_F1            SHIFT                 ^[Ov
  739. VK_F2            SHIFT                 ^[Ol
  740. VK_F3            SHIFT                 ^[Oq
  741. VK_F4            SHIFT                 ^[Or
  742. VK_F5            SHIFT                 ^[Os
  743. VK_F6            SHIFT                 ^[OM
  744. VK_F7            SHIFT                 ^[Op
  745. VK_F8            SHIFT                 ^[On
  746. VK_F6            RIGHT_CTRL            ^[[17~
  747. VK_F7            RIGHT_CTRL            ^[[18~
  748. VK_F8            RIGHT_CTRL            ^[[19~
  749. VK_F9            RIGHT_CTRL            ^[[20~
  750. VK_F10           RIGHT_CTRL            ^[[21~
  751. VK_F11           RIGHT_CTRL            ^[[23~
  752. VK_F12           RIGHT_CTRL            ^[[24~
  753. VK_F6            LEFT_CTRL             ^[[17~
  754. VK_F7            LEFT_CTRL             ^[[18~
  755. VK_F8            LEFT_CTRL             ^[[19~
  756. VK_F9            LEFT_CTRL             ^[[20~
  757. VK_F10           LEFT_CTRL             ^[[21~
  758. VK_F11           LEFT_CTRL             ^[[23~
  759. VK_F12           LEFT_CTRL             ^[[24~
  760. [END keymap] // vt100
  761. [keymap AT386]
  762. :
  763. ; AT386 extended keys
  764. ;
  765. ; Dmitry Lapenkov <dl@bis.ru>
  766. ;
  767. VK_LBUTTON                              ^Mx00
  768. VK_RBUTTON                              ^[^[
  769. VK_CANCEL                               ^C
  770. VK_MBUTTON                              ^[OP
  771. VK_BACK                                 ^H
  772. VK_BACK         SHIFT                   ^[[O
  773. VK_BACK         LEFT_CTRL               127
  774. VK_BACK         RIGHT_CTRL              127
  775. VK_TAB                                  ^I
  776. VK_TAB          SHIFT                   ^[[Z
  777. VK_TAB          LEFT_CTRL               ^[[Z
  778. VK_TAB          RIGHT_CTRL              ^[[Z
  779. VK_RETURN                               ^Mx00
  780. VK_RETURN       SHIFT                   ^[[R
  781. VK_RETURN       LEFT_CTRL               ^J
  782. VK_RETURN       RIGHT_CTRL              ^J
  783. VK_PAUSE                                ^S
  784. VK_PAUSE        LEFT_CTRL               ^C
  785. VK_PAUSE        RIGHT_CTRL              ^C
  786. VK_PAUSE        SHIFT                   ^S
  787. VK_ESCAPE                               ^[^[
  788. VK_ESCAPE       SHIFT                   ^[
  789. VK_BACK         LEFT_ALT                ^[[o
  790. VK_BACK         RIGHT_ALT               ^[[o
  791. VK_TAB          LEFT_ALT                ^[[z
  792. VK_TAB          RIGHT_ALT               ^[[z
  793. VK_RETURN       LEFT_ALT                ^[[r
  794. VK_RETURN       RIGHT_ALT               ^[[r
  795. VK_PAUSE        LEFT_ALT                ^[<
  796. VK_PAUSE        RIGHT_ALT               ^[>
  797. VK_PGUP                                 ^[[V
  798. VK_PGUP         SHIFT                   ^[[V
  799. VK_PGUP         LEFT_CTRL               ^[[W
  800. VK_PGUP         RIGHT_CTRL              ^[[W
  801. VK_PGDN                                 ^[[U
  802. VK_PGDN         SHIFT                   ^[[U
  803. VK_PGDN         LEFT_CTRL               ^[[X
  804. VK_PGDN         RIGHT_CTRL              ^[[X
  805. VK_END                                  ^[[Y
  806. VK_END          SHIFT                   ^[[Y
  807. VK_END          LEFT_CTRL               ^[[E
  808. VK_END          RIGHT_CTRL              ^[[E
  809. VK_HOME                                 ^[[H
  810. VK_HOME         SHIFT                   ^[[H
  811. VK_HOME         LEFT_CTRL               ^[[F
  812. VK_HOME         RIGHT_CTRL              ^[[F
  813. VK_LEFT                                 ^[[D
  814. VK_LEFT         SHIFT                   ^[[D
  815. VK_LEFT         LEFT_CTRL               ^[[K
  816. VK_LEFT         RIGHT_CTRL              ^[[K
  817. VK_UP                                   ^[[A
  818. VK_UP           SHIFT                   ^[[A
  819. VK_UP           LEFT_CTRL               ^[[I
  820. VK_UP           RIGHT_CTRL              ^[[I
  821. VK_RIGHT                                ^[[C
  822. VK_RIGHT        SHIFT                   ^[[C
  823. VK_RIGHT        LEFT_CTRL               ^[[L
  824. VK_RIGHT        RIGHT_CTRL              ^[[L
  825. VK_DOWN                                 ^[[B
  826. VK_DOWN         SHIFT                   ^[[B
  827. VK_DOWN         LEFT_CTRL               ^[[J
  828. VK_DOWN         RIGHT_CTRL              ^[[J
  829. VK_INSERT                               ^[[@
  830. VK_INSERT       SHIFT                   ^[[T
  831. VK_INSERT       LEFT_CTRL               ^[[T
  832. VK_INSERT       RIGHT_CTRL              ^[[T
  833. VK_DELETE                               127
  834. VK_DELETE       SHIFT                   ^[[S
  835. VK_DELETE       LEFT_CTRL               ^[[S
  836. VK_DELETE       RIGHT_CTRL              ^[[S
  837. VK_PGUP         LEFT_ALT                ^[[v
  838. VK_PGUP         RIGHT_ALT               ^[[v
  839. VK_PGDN         LEFT_ALT                ^[[u
  840. VK_PGDN         RIGHT_ALT               ^[[u
  841. VK_END          LEFT_ALT                ^[[y
  842. VK_END          RIGHT_ALT               ^[[y
  843. VK_HOME         LEFT_ALT                ^[[h
  844. VK_HOME         RIGHT_ALT               ^[[h
  845. VK_LEFT         LEFT_ALT                ^[[d
  846. VK_LEFT         RIGHT_ALT               ^[[d
  847. VK_UP           LEFT_ALT                ^[[a
  848. VK_UP           RIGHT_ALT               ^[[a
  849. VK_RIGHT        LEFT_ALT                ^[[c
  850. VK_RIGHT        RIGHT_ALT               ^[[c
  851. VK_DOWN         LEFT_ALT                ^[[b
  852. VK_DOWN         RIGHT_ALT               ^[[b
  853. VK_INSERT       LEFT_ALT                ^[[t
  854. VK_INSERT       RIGHT_ALT               ^[[t
  855. VK_DELETE       LEFT_ALT                ^[[s
  856. VK_DELETE       RIGHT_ALT               ^[[s
  857. VK_0            LEFT_ALT                ^[N0
  858. VK_1            LEFT_ALT                ^[N1
  859. VK_2            LEFT_ALT                ^[N2
  860. VK_3            LEFT_ALT                ^[N3
  861. VK_4            LEFT_ALT                ^[N4
  862. VK_5            LEFT_ALT                ^[N5
  863. VK_6            LEFT_ALT                ^[N6
  864. VK_7            LEFT_ALT                ^[N7
  865. VK_8            LEFT_ALT                ^[N8
  866. VK_9            LEFT_ALT                ^[N9
  867. VK_0            RIGHT_ALT               ^[N0
  868. VK_1            RIGHT_ALT               ^[N1
  869. VK_2            RIGHT_ALT               ^[N2
  870. VK_3            RIGHT_ALT               ^[N3
  871. VK_4            RIGHT_ALT               ^[N4
  872. VK_5            RIGHT_ALT               ^[N5
  873. VK_6            RIGHT_ALT               ^[N6
  874. VK_7            RIGHT_ALT               ^[N7
  875. VK_8            RIGHT_ALT               ^[N8
  876. VK_9            RIGHT_ALT               ^[N9
  877. VK_A            LEFT_ALT                ^[NA
  878. VK_B            LEFT_ALT                ^[NB
  879. VK_C            LEFT_ALT                ^[NC
  880. VK_D            LEFT_ALT                ^[ND
  881. VK_E            LEFT_ALT                ^[NE
  882. VK_F            LEFT_ALT                ^[NF
  883. VK_G            LEFT_ALT                ^[NG
  884. VK_H            LEFT_ALT                ^[NH
  885. VK_I            LEFT_ALT                ^[NI
  886. VK_J            LEFT_ALT                ^[NJ
  887. VK_K            LEFT_ALT                ^[NK
  888. VK_L            LEFT_ALT                ^[NL
  889. VK_M            LEFT_ALT                ^[NM
  890. VK_M            LEFT_ALT                ^[NN
  891. VK_O            LEFT_ALT                ^[NO
  892. VK_P            LEFT_ALT                ^[NP
  893. VK_Q            LEFT_ALT                ^[NQ
  894. VK_R            LEFT_ALT                ^[NR
  895. VK_S            LEFT_ALT                ^[NS
  896. VK_T            LEFT_ALT                ^[NT
  897. VK_U            LEFT_ALT                ^[NU
  898. VK_V            LEFT_ALT                ^[NV
  899. VK_W            LEFT_ALT                ^[NW
  900. VK_X            LEFT_ALT                ^[NX
  901. VK_Y            LEFT_ALT                ^[NY
  902. VK_Z            LEFT_ALT                ^[NZ
  903. VK_A            RIGHT_ALT               ^[NA
  904. VK_B            RIGHT_ALT               ^[NB
  905. VK_C            RIGHT_ALT               ^[NC
  906. VK_D            RIGHT_ALT               ^[ND
  907. VK_E            RIGHT_ALT               ^[NE
  908. VK_F            RIGHT_ALT               ^[NF
  909. VK_G            RIGHT_ALT               ^[NG
  910. VK_H            RIGHT_ALT               ^[NH
  911. VK_I            RIGHT_ALT               ^[NI
  912. VK_J            RIGHT_ALT               ^[NJ
  913. VK_K            RIGHT_ALT               ^[NK
  914. VK_L            RIGHT_ALT               ^[NL
  915. VK_M            RIGHT_ALT               ^[NM
  916. VK_M            RIGHT_ALT               ^[NN
  917. VK_O            RIGHT_ALT               ^[NO
  918. VK_P            RIGHT_ALT               ^[NP
  919. VK_Q            RIGHT_ALT               ^[NQ
  920. VK_R            RIGHT_ALT               ^[NR
  921. VK_S            RIGHT_ALT               ^[NS
  922. VK_T            RIGHT_ALT               ^[NT
  923. VK_U            RIGHT_ALT               ^[NU
  924. VK_V            RIGHT_ALT               ^[NV
  925. VK_W            RIGHT_ALT               ^[NW
  926. VK_X            RIGHT_ALT               ^[NX
  927. VK_Y            RIGHT_ALT               ^[NY
  928. VK_Z            RIGHT_ALT               ^[NZ
  929. VK_NUMPAD0      LEFT_CTRL               ^[[T
  930. VK_NUMPAD0      RIGHT_CTRL              ^[[T
  931. VK_NUMPAD1      LEFT_CTRL               ^[[E
  932. VK_NUMPAD1      RIGHT_CTRL              ^[[E
  933. VK_NUMPAD2      LEFT_CTRL               ^[[J
  934. VK_NUMPAD2      RIGHT_CTRL              ^[[J
  935. VK_NUMPAD3      LEFT_CTRL               ^[[X
  936. VK_NUMPAD3      RIGHT_CTRL              ^[[X
  937. VK_NUMPAD4      LEFT_CTRL               ^[[K
  938. VK_NUMPAD4      RIGHT_CTRL              ^[[K
  939. VK_NUMPAD5      LEFT_CTRL               ^[[G
  940. VK_NUMPAD5      RIGHT_CTRL              ^[[G
  941. VK_NUMPAD6      LEFT_CTRL               ^[[L
  942. VK_NUMPAD6      RIGHT_CTRL              ^[[L
  943. VK_NUMPAD7      LEFT_CTRL               ^[[F
  944. VK_NUMPAD7      RIGHT_CTRL              ^[[F
  945. VK_NUMPAD8      LEFT_CTRL               ^[[I
  946. VK_NUMPAD8      RIGHT_CTRL              ^[[I
  947. VK_NUMPAD9      LEFT_CTRL               ^[[W
  948. VK_NUMPAD9      RIGHT_CTRL              ^[[W
  949. VK_MULTIPLY     LEFT_CTRL               ^[[Q
  950. VK_MULTIPLY     RIGHT_CTRL              ^[[Q
  951. VK_ADD          LEFT_CTRL               ^[[M
  952. VK_ADD          RIGHT_CTRL              ^[[M
  953. VK_SEPARATOR    SHIFT                   ^[[R
  954. VK_SEPARATOR    LEFT_CTRL               ^J
  955. VK_SEPARATOR    RIGHT_CTRL              ^J
  956. VK_SUBTRACT     LEFT_CTRL               ^[[N
  957. VK_SUBTRACT     RIGHT_CTRL              ^[[N
  958. VK_DECIMAL      LEFT_CTRL               ^[[S
  959. VK_DECIMAL      RIGHT_CTRL              ^[[S
  960. VK_DIVIDE       LEFT_CTRL               ^[[P
  961. VK_DIVIDE       RIGHT_CTRL              ^[[P
  962. VK_NUMPAD0      LEFT_ALT                ^X
  963. VK_NUMPAD0      RIGHT_ALT               ^X
  964. VK_NUMPAD1      LEFT_ALT                ^E
  965. VK_NUMPAD1      RIGHT_ALT               ^E
  966. VK_NUMPAD2      LEFT_ALT                ^X/
  967. VK_NUMPAD2      RIGHT_ALT               ^X/
  968. VK_NUMPAD3      LEFT_ALT                ^V
  969. VK_NUMPAD3      RIGHT_ALT               ^V
  970. VK_NUMPAD4      LEFT_ALT                ^X^F
  971. VK_NUMPAD4      RIGHT_ALT               ^X^F
  972. VK_NUMPAD5      LEFT_ALT                ^[[g
  973. VK_NUMPAD5      RIGHT_ALT               ^[[g
  974. VK_NUMPAD6      LEFT_ALT                ^X^Y
  975. VK_NUMPAD6      RIGHT_ALT               ^X^Y
  976. VK_NUMPAD7      LEFT_ALT                ^A
  977. VK_NUMPAD7      RIGHT_ALT               ^A
  978. VK_NUMPAD8      LEFT_ALT                ^X_
  979. VK_NUMPAD8      RIGHT_ALT               ^X_
  980. VK_NUMPAD9      LEFT_ALT                ^[v
  981. VK_NUMPAD9      RIGHT_ALT               ^[v
  982. VK_MULTIPLY     LEFT_ALT                ^[[q
  983. VK_MULTIPLY     RIGHT_ALT               ^[[q
  984. VK_ADD          LEFT_ALT                ^[[m
  985. VK_ADD          RIGHT_ALT               ^[[m
  986. VK_SEPARATOR    LEFT_ALT                ^[[r
  987. VK_SEPARATOR    RIGHT_ALT               ^[[r
  988. VK_SUBTRACT     LEFT_ALT                ^[[n
  989. VK_SUBTRACT     RIGHT_ALT               ^[[n
  990. VK_DECIMAL      LEFT_ALT                ^X^C
  991. VK_DECIMAL      RIGHT_ALT               ^X^C
  992. VK_DIVIDE       LEFT_ALT                ^[[p
  993. VK_DIVIDE       RIGHT_ALT               ^[[p
  994. VK_F1                                   ^[OP
  995. VK_F1           SHIFT                   ^[Op
  996. VK_F1           LEFT_CTRL               ^[Ob
  997. VK_F1           RIGHT_CTRL              ^[Ob
  998. VK_F2                                   ^[OQ
  999. VK_F2           SHIFT                   ^[Oq
  1000. VK_F2           LEFT_CTRL               ^[Oc
  1001. VK_F2           RIGHT_CTRL              ^[Oc
  1002. VK_F3                                   ^[OR
  1003. VK_F3           SHIFT                   ^[Or
  1004. VK_F3           LEFT_CTRL               ^[Od
  1005. VK_F3           RIGHT_CTRL              ^[Od
  1006. VK_F4                                   ^[OS
  1007. VK_F4           SHIFT                   ^[Os
  1008. VK_F4           LEFT_CTRL               ^[Oe
  1009. VK_F4           RIGHT_CTRL              ^[Oe
  1010. VK_F5                                   ^[OT
  1011. VK_F5           SHIFT                   ^[Ot
  1012. VK_F5           LEFT_CTRL               ^[Of
  1013. VK_F5           RIGHT_CTRL              ^[Of
  1014. VK_F6                                   ^[OU
  1015. VK_F6           SHIFT                   ^[Ou
  1016. VK_F6           LEFT_CTRL               ^[Og
  1017. VK_F6           RIGHT_CTRL              ^[Og
  1018. VK_F7                                   ^[OV
  1019. VK_F7           SHIFT                   ^[Ov
  1020. VK_F7           LEFT_CTRL               ^[Oh
  1021. VK_F7           RIGHT_CTRL              ^[Oh
  1022. VK_F8                                   ^[OW
  1023. VK_F8           SHIFT                   ^[Ow
  1024. VK_F8           LEFT_CTRL               ^[Oi
  1025. VK_F8           RIGHT_CTRL              ^[Oi
  1026. VK_F9                                   ^[OX
  1027. VK_F9           SHIFT                   ^[Ox
  1028. VK_F9           LEFT_CTRL               ^[Oj
  1029. VK_F9           RIGHT_CTRL              ^[Oj
  1030. VK_F10                                  ^[OY
  1031. VK_F10          SHIFT                   ^[Oy
  1032. VK_F10          LEFT_CTRL               ^[Ok
  1033. VK_F10          RIGHT_CTRL              ^[Ok
  1034. VK_F11                                  ^[OZ
  1035. VK_F11          SHIFT                   ^[Oz
  1036. VK_F11          LEFT_CTRL               ^[Ol
  1037. VK_F11          RIGHT_CTRL              ^[Ol
  1038. VK_F12                                  ^[OA
  1039. VK_F12          SHIFT                   ^[Oa
  1040. VK_F12          LEFT_CTRL               ^[Om
  1041. VK_F12          RIGHT_CTRL              ^[Om
  1042. VK_F1           LEFT_ALT                 ^[O1
  1043. VK_F1           RIGHT_ALT                ^[O1
  1044. VK_F2           LEFT_ALT                 ^[O2
  1045. VK_F2           RIGHT_ALT                ^[O2
  1046. VK_F3           LEFT_ALT                 ^[O3
  1047. VK_F3           RIGHT_ALT                ^[O3
  1048. VK_F4           LEFT_ALT                 ^[O4
  1049. VK_F4           RIGHT_ALT                ^[O4
  1050. VK_F5           LEFT_ALT                 ^[O5
  1051. VK_F5           RIGHT_ALT                ^[O5
  1052. VK_F6           LEFT_ALT                 ^[O6
  1053. VK_F6           RIGHT_ALT                ^[O6
  1054. VK_F7           LEFT_ALT                 ^[O7
  1055. VK_F7           RIGHT_ALT                ^[O7
  1056. VK_F8           LEFT_ALT                 ^[O8
  1057. VK_F8           RIGHT_ALT                ^[O8
  1058. VK_F9           LEFT_ALT                 ^[O9
  1059. VK_F9           RIGHT_ALT                ^[O9
  1060. VK_F10          LEFT_ALT                 ^[O0
  1061. VK_F10          RIGHT_ALT                ^[O0
  1062. VK_F11          LEFT_ALT                 ^[O:
  1063. VK_F11          RIGHT_ALT                ^[O:
  1064. VK_F12          LEFT_ALT                 ^[O;
  1065. VK_F12          RIGHT_ALT                ^[O;
  1066. [END keymap]
  1067. [keymap at386st]
  1068. ;
  1069. ; AT386 standard keys
  1070. ;
  1071. VK_F1                                   ^[OP
  1072. VK_F2                                   ^[OQ
  1073. VK_F3                                   ^[OR
  1074. VK_F4                                   ^[OS
  1075. VK_F5                                   ^[OT
  1076. VK_F6                                   ^[OU
  1077. VK_F7                                   ^[OV
  1078. VK_F8                                   ^[OW
  1079. VK_F9                                   ^[OX
  1080. VK_F10                                  ^[OY
  1081. VK_F11                                  ^[[W
  1082. VK_F12                                  ^[[X
  1083. VK_SCROLL                               17
  1084. VK_PAUSE                                19
  1085. ;
  1086. VK_INSERT                               ^[[@
  1087. VK_DELETE                               04
  1088. ;
  1089. VK_LEFT                                 ^[[D
  1090. VK_UP                                   ^[[A
  1091. VK_RIGHT                                ^[[C
  1092. VK_DOWN                                 ^[[B
  1093. ;
  1094. VK_HOME                                 ^[[H
  1095. VK_PGUP                                 ^[[V
  1096. VK_PGDN                                 ^[[U
  1097. VK_END                                  ^[[Y
  1098. ;
  1099. VK_TAB                                  09
  1100. VK_TAB          SHIFT                   ^[[Z
  1101. VK_ESCAPE                               ^[
  1102. [END keymap]
  1103. ;****************************************************************************
  1104. ;****************************************************************************
  1105. ;***                          Ukranian keyboard                           ***
  1106. ;****************************************************************************
  1107. ;****************************************************************************
  1108. [keymap koi8u]
  1109. ; I prefer this
  1110. VK_2             SHIFT                 "
  1111. VK_2             CAPSLOCK+SHIFT        "
  1112. VK_4             SHIFT                 ;
  1113. VK_4             CAPSLOCK+SHIFT        ;
  1114. VK_5             SHIFT                 %
  1115. VK_5             CAPSLOCK+SHIFT        %
  1116. VK_6             SHIFT                 :
  1117. VK_6             CAPSLOCK+SHIFT        :
  1118. VK_7             SHIFT                 ?
  1119. VK_7             CAPSLOCK+SHIFT        ?
  1120. VK_/                                   .
  1121. VK_/             SHIFT                 ,
  1122. VK_/             CAPSLOCK              .
  1123. VK_/             CAPSLOCK+SHIFT        ,
  1124. ; next will be similar to std
  1125. ;                xE1 CYRILLIC CAPITAL LETTER A
  1126. ;                xC1 CYRILLIC SMALL   LETTER A
  1127. VK_F                                   xC1
  1128. VK_F             SHIFT                 xE1
  1129. VK_F             CAPSLOCK              xE1
  1130. VK_F             CAPSLOCK+SHIFT        xC1
  1131. ;                xE2 CYRILLIC CAPITAL LETTER BE
  1132. ;                xC2 CYRILLIC SMALL   LETTER BE
  1133. VK_,                                   xc2
  1134. VK_,             SHIFT                 xe2
  1135. VK_,             CAPSLOCK              xe2
  1136. VK_,             CAPSLOCK+SHIFT        xc2
  1137. ;                xB6 CYRILLIC CAPITAL LETTER BELORUSSIAN-UKRAINIAN I
  1138. ;                xA6 CYRILLIC SMALL   LETTER BELORUSSIAN-UKRAINIAN I
  1139. VK_S                                   xa6
  1140. VK_S             SHIFT                 xb6
  1141. VK_S             CAPSLOCK              xb6
  1142. VK_S             CAPSLOCK+SHIFT        xa6
  1143. ;                xFE CYRILLIC CAPITAL LETTER CHE
  1144. ;                xDE CYRILLIC SMALL   LETTER CHE
  1145. VK_X                                   xde
  1146. VK_X             SHIFT                 xfe
  1147. VK_X             CAPSLOCK              xfe
  1148. VK_X             CAPSLOCK+SHIFT        xde
  1149. ;                xE4 CYRILLIC CAPITAL LETTER DE
  1150. ;                xC4 CYRILLIC SMALL   LETTER DE
  1151. VK_L                                   xc4
  1152. VK_L             SHIFT                 xe4
  1153. VK_L             CAPSLOCK              xe4
  1154. VK_L             CAPSLOCK+SHIFT        xc4
  1155. ;                xE6 CYRILLIC CAPITAL LETTER EF
  1156. ;                xC6 CYRILLIC SMALL   LETTER EF
  1157. VK_A                                   xc6
  1158. VK_A             SHIFT                 xe6
  1159. VK_A             CAPSLOCK              xe6
  1160. VK_A             CAPSLOCK+SHIFT        xc6
  1161. ;                xEC CYRILLIC CAPITAL LETTER EL
  1162. ;                xCC CYRILLIC SMALL   LETTER EL
  1163. VK_K                                   xcc
  1164. VK_K             SHIFT                 xec
  1165. VK_K             CAPSLOCK              xec
  1166. VK_K             CAPSLOCK+SHIFT        xcc
  1167. ;                xED CYRILLIC CAPITAL LETTER EM
  1168. ;                xCD CYRILLIC SMALL   LETTER EM
  1169. VK_V                                   xcd
  1170. VK_V             SHIFT                 xed
  1171. VK_V             CAPSLOCK              xed
  1172. VK_V             CAPSLOCK+SHIFT        xcd
  1173. ;                xEE CYRILLIC CAPITAL LETTER EN
  1174. ;                xCE CYRILLIC SMALL   LETTER EN
  1175. VK_Y                                   xce
  1176. VK_Y             SHIFT                 xee
  1177. VK_Y             CAPSLOCK              xee
  1178. VK_Y             CAPSLOCK+SHIFT        xce
  1179. ;                xF2 CYRILLIC CAPITAL LETTER ER
  1180. ;                xD2 CYRILLIC SMALL   LETTER ER
  1181. VK_H                                   xd2
  1182. VK_H             SHIFT                 xf2
  1183. VK_H             CAPSLOCK              xf2
  1184. VK_H             CAPSLOCK+SHIFT        xd2
  1185. ;                xF3 CYRILLIC CAPITAL LETTER ES
  1186. ;                xD3 CYRILLIC SMALL   LETTER ES
  1187. VK_C                                   xd3
  1188. VK_C             SHIFT                 xf3
  1189. VK_C             CAPSLOCK              xf3
  1190. VK_C             CAPSLOCK+SHIFT        xd3
  1191. ;                xE7 CYRILLIC CAPITAL LETTER GE
  1192. ;                xC7 CYRILLIC SMALL   LETTER GE
  1193. VK_U                                   xc7
  1194. VK_U             SHIFT                 xe7
  1195. VK_U             CAPSLOCK              xe7
  1196. VK_U             CAPSLOCK+SHIFT        xc7
  1197. ;                xF1 CYRILLIC CAPITAL LETTER IA
  1198. ;                xD1 CYRILLIC SMALL   LETTER IA
  1199. VK_Z                                   xd1
  1200. VK_Z             SHIFT                 xf1
  1201. VK_Z             CAPSLOCK              xf1
  1202. VK_Z             CAPSLOCK+SHIFT        xd1
  1203. ;                xE5 CYRILLIC CAPITAL LETTER IE
  1204. ;                xC5 CYRILLIC SMALL   LETTER IE
  1205. VK_T                                   xc5
  1206. VK_T             SHIFT                 xe5
  1207. VK_T             CAPSLOCK              xe5
  1208. VK_T             CAPSLOCK+SHIFT        xc5
  1209. ;                xE9 CYRILLIC CAPITAL LETTER II
  1210. ;                xC9 CYRILLIC SMALL   LETTER II
  1211. VK_B                                   xc9
  1212. VK_B             SHIFT                 xe9
  1213. VK_B             CAPSLOCK              xe9
  1214. VK_B             CAPSLOCK+SHIFT        xc9
  1215. ;                xE0 CYRILLIC CAPITAL LETTER IU
  1216. ;                xC0 CYRILLIC SMALL   LETTER IU
  1217. VK_.                                   xc0
  1218. VK_.             SHIFT                 xe0
  1219. VK_.             CAPSLOCK              xe0
  1220. VK_.             CAPSLOCK+SHIFT        xc0
  1221. ;                xEB CYRILLIC CAPITAL LETTER KA
  1222. ;                xCB CYRILLIC SMALL   LETTER KA
  1223. VK_R                                   xcb
  1224. VK_R             SHIFT                 xeb
  1225. VK_R             CAPSLOCK              xeb
  1226. VK_R             CAPSLOCK+SHIFT        xcb
  1227. ;                xE8 CYRILLIC CAPITAL LETTER KHA
  1228. ;                xC8 CYRILLIC SMALL   LETTER KHA
  1229. VK_[                                   xc8
  1230. VK_[             SHIFT                 xe8
  1231. VK_[             CAPSLOCK              xE8
  1232. VK_[             CAPSLOCK+SHIFT        xC8
  1233. ;                xEF CYRILLIC CAPITAL LETTER O
  1234. ;                xCF CYRILLIC SMALL   LETTER O
  1235. VK_J                                   xcf
  1236. VK_J             SHIFT                 xef
  1237. VK_J             CAPSLOCK              xef
  1238. VK_J             CAPSLOCK+SHIFT        xcf
  1239. ;                xF0 CYRILLIC CAPITAL LETTER PE
  1240. ;                xD0 CYRILLIC SMALL   LETTER PE
  1241. VK_G                                   xd0
  1242. VK_G             SHIFT                 xf0
  1243. VK_G             CAPSLOCK              xf0
  1244. VK_G             CAPSLOCK+SHIFT        xd0
  1245. ;                xFB CYRILLIC CAPITAL LETTER SHA
  1246. ;                xDB CYRILLIC SMALL   LETTER SHA
  1247. VK_I                                   xdb
  1248. VK_I             SHIFT                 xfb
  1249. VK_I             CAPSLOCK              xfb
  1250. VK_I             CAPSLOCK+SHIFT        xdb
  1251. ;                xFD CYRILLIC CAPITAL LETTER SHCHA
  1252. ;                xDD CYRILLIC SMALL   LETTER SHCHA
  1253. VK_O                                   xdd
  1254. VK_O             SHIFT                 xfd
  1255. VK_O             CAPSLOCK              xfd
  1256. VK_O             CAPSLOCK+SHIFT        xdd
  1257. ;                xEA CYRILLIC CAPITAL LETTER SHORT II
  1258. ;                xCA CYRILLIC SMALL   LETTER SHORT II
  1259. VK_Q                                   xca
  1260. VK_Q             SHIFT                 xea
  1261. VK_Q             CAPSLOCK              xea
  1262. VK_Q             CAPSLOCK+SHIFT        xca
  1263. ;                xF8 CYRILLIC CAPITAL LETTER SOFT SIGN
  1264. ;                xD8 CYRILLIC SMALL   LETTER SOFT SIGN
  1265. VK_M                                   xd8
  1266. VK_M             SHIFT                 xf8
  1267. VK_M             CAPSLOCK              xf8
  1268. VK_M             CAPSLOCK+SHIFT        xd8
  1269. ;                xF4 CYRILLIC CAPITAL LETTER TE
  1270. ;                xD4 CYRILLIC SMALL   LETTER TE
  1271. VK_N                                   xd4
  1272. VK_N             SHIFT                 xf4
  1273. VK_N             CAPSLOCK              xf4
  1274. VK_N             CAPSLOCK+SHIFT        xd4
  1275. ;                xE3 CYRILLIC CAPITAL LETTER TSE
  1276. ;                xC3 CYRILLIC SMALL   LETTER TSE
  1277. VK_W                                   xc3
  1278. VK_W             SHIFT                 xe3
  1279. VK_W             CAPSLOCK              xe3
  1280. VK_W             CAPSLOCK+SHIFT        xc3
  1281. ;                xF5 CYRILLIC CAPITAL LETTER U
  1282. ;                xD5 CYRILLIC SMALL   LETTER U
  1283. VK_E                                   xd5
  1284. VK_E             SHIFT                 xf5
  1285. VK_E             CAPSLOCK              xf5
  1286. VK_E             CAPSLOCK+SHIFT        xd5
  1287. ;                xBD CYRILLIC CAPITAL LETTER UKRAINIAN GHE (UPTURN)
  1288. ;                xAD CYRILLIC SMALL   LETTER UKRAINIAN GHE (UPTURN)
  1289. ; not realized because not too many words use it, use GHE for it
  1290. ;                xB4 CYRILLIC CAPITAL LETTER UKRAINIAN IE
  1291. ;                xA4 CYRILLIC SMALL   LETTER UKRAINIAN IE
  1292. VK_'                                   xa4
  1293. VK_'             SHIFT                 xb4
  1294. VK_'             CAPSLOCK              xb4
  1295. VK_'             CAPSLOCK+SHIFT        xa4
  1296. ;                xF7 CYRILLIC CAPITAL LETTER VE
  1297. ;                xD7 CYRILLIC SMALL   LETTER VE
  1298. VK_D                                   xd7
  1299. VK_D             SHIFT                 xf7
  1300. VK_D             CAPSLOCK              xf7
  1301. VK_D             CAPSLOCK+SHIFT        xd7
  1302. ;                xB7 CYRILLIC CAPITAL LETTER YI (UKRAINIAN)
  1303. ;                xA7 CYRILLIC SMALL   LETTER YI (UKRAINIAN)
  1304. VK_]                                   xa7
  1305. VK_]             SHIFT                 xb7
  1306. VK_]             CAPSLOCK              xb7
  1307. VK_]             CAPSLOCK+SHIFT        xa7
  1308. ;                xFA CYRILLIC CAPITAL LETTER ZE
  1309. ;                xDA CYRILLIC SMALL   LETTER ZE
  1310. VK_P                                   xda
  1311. VK_P             SHIFT                 xfa
  1312. VK_P             CAPSLOCK              xfa
  1313. VK_P             CAPSLOCK+SHIFT        xda
  1314. ;                xF6 CYRILLIC CAPITAL LETTER ZHE
  1315. ;                xD6 CYRILLIC SMALL   LETTER ZHE
  1316. VK_;                                   xd6
  1317. VK_;             SHIFT                 xf6
  1318. VK_;             CAPSLOCK              xf6
  1319. VK_;             CAPSLOCK+SHIFT        xd6
  1320. [END keymap] // koi8u
  1321. [keymap koi8r]
  1322. ;****************************************************************************
  1323. ;****************************************************************************
  1324. ;***                           Russian keyboard.                          ***
  1325. ;***                                                                      ***
  1326. ;***            there are only differents from koi8u, so use              ***
  1327. ;***                  it as 'keymap koi8u + koi8r'                        ***
  1328. ;****************************************************************************
  1329. ;****************************************************************************
  1330. ;                xFF CYRILLIC CAPITAL LETTER HARD SIGN
  1331. ;                xDF CYRILLIC SMALL   LETTER HARD SIGN
  1332. VK_]                                   xdf
  1333. VK_]             SHIFT                 xff
  1334. VK_]             CAPSLOCK              xff
  1335. VK_]             CAPSLOCK+SHIFT        xdf
  1336. ;                xB3 CYRILLIC CAPITAL LETTER IO
  1337. ;                xA3 CYRILLIC SMALL   LETTER IO
  1338. VK_`                                   xa3
  1339. VK_`             SHIFT                 xb3
  1340. VK_`             CAPSLOCK              xb3
  1341. VK_`             CAPSLOCK+SHIFT        xa3
  1342. ;                xFC CYRILLIC CAPITAL LETTER REVERSED E
  1343. ;                xDC CYRILLIC SMALL   LETTER REVERSED E
  1344. VK_'                                   xdc
  1345. VK_'             SHIFT                 xfc
  1346. VK_'             CAPSLOCK              xfc
  1347. VK_'             CAPSLOCK+SHIFT        xdc
  1348. ;                xF9 CYRILLIC CAPITAL LETTER YERI
  1349. ;                xD9 CYRILLIC SMALL   LETTER YERI
  1350. VK_S                                   xd9
  1351. VK_S             SHIFT                 xf9
  1352. VK_S             CAPSLOCK              xf9
  1353. VK_S             CAPSLOCK+SHIFT        xd9
  1354. [END keymap] // koi8r
  1355. ;****************************************************************************
  1356. ;****************************************************************************
  1357. ;***                    Russian keyboard IBM PC-866                       ***
  1358. ;***                                                                      ***
  1359. ;***                    Dmitry Lapenkov <dl@bis.ru>                       ***
  1360. ;****************************************************************************
  1361. ;****************************************************************************
  1362. [keymap ibm866]
  1363. VK_`                                   )
  1364. VK_`             SHIFT                 (
  1365. VK_`             CAPSLOCK              (
  1366. VK_`             CAPSLOCK+SHIFT        )
  1367. VK_2             SHIFT                 "
  1368. VK_2             CAPSLOCK+SHIFT        "
  1369. VK_3             SHIFT                 /
  1370. VK_3             CAPSLOCK+SHIFT        /
  1371. VK_4             SHIFT                 xfc
  1372. VK_4             CAPSLOCK+SHIFT        xfc
  1373. VK_5             SHIFT                 :
  1374. VK_5             CAPSLOCK+SHIFT        :
  1375. VK_6             SHIFT                 ,
  1376. VK_6             CAPSLOCK+SHIFT        ,
  1377. VK_7             SHIFT                 .
  1378. VK_7             CAPSLOCK+SHIFT        .
  1379. VK_8             SHIFT                 ;
  1380. VK_8             CAPSLOCK+SHIFT        ;
  1381. VK_9             SHIFT                 ?
  1382. VK_9             CAPSLOCK+SHIFT        ?
  1383. VK_0             SHIFT                 %
  1384. VK_0             CAPSLOCK+SHIFT        %
  1385. ;                128 CYRILLIC CAPITAL LETTER A
  1386. ;                160 CYRILLIC SMALL   LETTER A
  1387. VK_F                                   160
  1388. VK_F             SHIFT                 128
  1389. VK_F             CAPSLOCK              128
  1390. VK_F             CAPSLOCK+SHIFT        160
  1391. ;                129 CYRILLIC CAPITAL LETTER BE
  1392. ;                161 CYRILLIC SMALL   LETTER BE
  1393. VK_,                                   161
  1394. VK_,             SHIFT                 129
  1395. VK_,             CAPSLOCK              129
  1396. VK_,             CAPSLOCK+SHIFT        161
  1397. ;                240 CYRILLIC CAPITAL LETTER SHORT YO
  1398. ;                241 CYRILLIC SMALL   LETTER SHORT YO
  1399. VK_/                                   241
  1400. VK_/             SHIFT                 240
  1401. VK_/             CAPSLOCK              240
  1402. VK_/             CAPSLOCK+SHIFT        241
  1403. ;                157 CYRILLIC CAPITAL LETTER REVERSED E
  1404. ;                237 CYRILLIC SMALL   LETTER REVERSED E
  1405. VK_'                                   237
  1406. VK_'             SHIFT                 157
  1407. VK_'             CAPSLOCK              157
  1408. VK_'             CAPSLOCK+SHIFT        237
  1409. ;                155 CYRILLIC CAPITAL LETTER YERI
  1410. ;                235 CYRILLIC SMALL   LETTER YERI
  1411. VK_S                                   235
  1412. VK_S             SHIFT                 155
  1413. VK_S             CAPSLOCK              155
  1414. VK_S             CAPSLOCK+SHIFT        235
  1415. ;                151 CYRILLIC CAPITAL LETTER CHE
  1416. ;                231 CYRILLIC SMALL   LETTER CHE
  1417. VK_X                                   231
  1418. VK_X             SHIFT                 151
  1419. VK_X             CAPSLOCK              151
  1420. VK_X             CAPSLOCK+SHIFT        231
  1421. ;                132 CYRILLIC CAPITAL LETTER DE
  1422. ;                164 CYRILLIC SMALL   LETTER DE
  1423. VK_L                                   164
  1424. VK_L             SHIFT                 132
  1425. VK_L             CAPSLOCK              132
  1426. VK_L             CAPSLOCK+SHIFT        164
  1427. ;                148 CYRILLIC CAPITAL LETTER EF
  1428. ;                228 CYRILLIC SMALL   LETTER EF
  1429. VK_A                                   228
  1430. VK_A             SHIFT                 148
  1431. VK_A             CAPSLOCK              148
  1432. VK_A             CAPSLOCK+SHIFT        228
  1433. ;                139 CYRILLIC CAPITAL LETTER EL
  1434. ;                171 CYRILLIC SMALL   LETTER EL
  1435. VK_K                                   171
  1436. VK_K             SHIFT                 139
  1437. VK_K             CAPSLOCK              139
  1438. VK_K             CAPSLOCK+SHIFT        171
  1439. ;                140 CYRILLIC CAPITAL LETTER EM
  1440. ;                172 CYRILLIC SMALL   LETTER EM
  1441. VK_V                                   172
  1442. VK_V             SHIFT                 140
  1443. VK_V             CAPSLOCK              140
  1444. VK_V             CAPSLOCK+SHIFT        172
  1445. ;                141 CYRILLIC CAPITAL LETTER EN
  1446. ;                173 CYRILLIC SMALL   LETTER EN
  1447. VK_Y                                   173
  1448. VK_Y             SHIFT                 141
  1449. VK_Y             CAPSLOCK              141
  1450. VK_Y             CAPSLOCK+SHIFT        173
  1451. ;                144 CYRILLIC CAPITAL LETTER ER
  1452. ;                224 CYRILLIC SMALL   LETTER ER
  1453. VK_H                                   224
  1454. VK_H             SHIFT                 144
  1455. VK_H             CAPSLOCK              144
  1456. VK_H             CAPSLOCK+SHIFT        224
  1457. ;                145 CYRILLIC CAPITAL LETTER ES
  1458. ;                225 CYRILLIC SMALL   LETTER ES
  1459. VK_C                                   225
  1460. VK_C             SHIFT                 145
  1461. VK_C             CAPSLOCK              145
  1462. VK_C             CAPSLOCK+SHIFT        225
  1463. ;                131 CYRILLIC CAPITAL LETTER GE
  1464. ;                163 CYRILLIC SMALL   LETTER GE
  1465. VK_U                                   163
  1466. VK_U             SHIFT                 131
  1467. VK_U             CAPSLOCK              131
  1468. VK_U             CAPSLOCK+SHIFT        163
  1469. ;                159 CYRILLIC CAPITAL LETTER YA
  1470. ;                239 CYRILLIC SMALL   LETTER YA
  1471. VK_Z                                   239
  1472. VK_Z             SHIFT                 159
  1473. VK_Z             CAPSLOCK              159
  1474. VK_Z             CAPSLOCK+SHIFT        239
  1475. ;                133 CYRILLIC CAPITAL LETTER IE
  1476. ;                165 CYRILLIC SMALL   LETTER IE
  1477. VK_T                                   165
  1478. VK_T             SHIFT                 133
  1479. VK_T             CAPSLOCK              133
  1480. VK_T             CAPSLOCK+SHIFT        165
  1481. ;                136 CYRILLIC CAPITAL LETTER II
  1482. ;                168 CYRILLIC SMALL   LETTER II
  1483. VK_B                                   168
  1484. VK_B             SHIFT                 136
  1485. VK_B             CAPSLOCK              136
  1486. VK_B             CAPSLOCK+SHIFT        168
  1487. ;                158 CYRILLIC CAPITAL LETTER YU
  1488. ;                238 CYRILLIC SMALL   LETTER YU
  1489. VK_.                                   238
  1490. VK_.             SHIFT                 158
  1491. VK_.             CAPSLOCK              158
  1492. VK_.             CAPSLOCK+SHIFT        238
  1493. ;                138 CYRILLIC CAPITAL LETTER KA
  1494. ;                170 CYRILLIC SMALL   LETTER KA
  1495. VK_R                                   170
  1496. VK_R             SHIFT                 138
  1497. VK_R             CAPSLOCK              138
  1498. VK_R             CAPSLOCK+SHIFT        170
  1499. ;                149 CYRILLIC CAPITAL LETTER KHA
  1500. ;                229 CYRILLIC SMALL   LETTER KHA
  1501. VK_[                                   229
  1502. VK_[             SHIFT                 149
  1503. VK_[             CAPSLOCK              149
  1504. VK_[             CAPSLOCK+SHIFT        229
  1505. ;                142 CYRILLIC CAPITAL LETTER O
  1506. ;                174 CYRILLIC SMALL   LETTER O
  1507. VK_J                                   174
  1508. VK_J             SHIFT                 142
  1509. VK_J             CAPSLOCK              142
  1510. VK_J             CAPSLOCK+SHIFT        174
  1511. ;                143 CYRILLIC CAPITAL LETTER PE
  1512. ;                175 CYRILLIC SMALL   LETTER PE
  1513. VK_G                                   175
  1514. VK_G             SHIFT                 143
  1515. VK_G             CAPSLOCK              143
  1516. VK_G             CAPSLOCK+SHIFT        175
  1517. ;                152 CYRILLIC CAPITAL LETTER SHA
  1518. ;                232 CYRILLIC SMALL   LETTER SHA
  1519. VK_I                                   232
  1520. VK_I             SHIFT                 152
  1521. VK_I             CAPSLOCK              152
  1522. VK_I             CAPSLOCK+SHIFT        232
  1523. ;                153 CYRILLIC CAPITAL LETTER SHCHA
  1524. ;                233 CYRILLIC SMALL   LETTER SHCHA
  1525. VK_O                                   233
  1526. VK_O             SHIFT                 153
  1527. VK_O             CAPSLOCK              153
  1528. VK_O             CAPSLOCK+SHIFT        233
  1529. ;                137 CYRILLIC CAPITAL LETTER SHORT II
  1530. ;                169 CYRILLIC SMALL   LETTER SHORT II
  1531. VK_Q                                   169
  1532. VK_Q             SHIFT                 137
  1533. VK_Q             CAPSLOCK              137
  1534. VK_Q             CAPSLOCK+SHIFT        169
  1535. ;                156 CYRILLIC CAPITAL LETTER SOFT SIGN
  1536. ;                236 CYRILLIC SMALL   LETTER SOFT SIGN
  1537. VK_M                                   236
  1538. VK_M             SHIFT                 156
  1539. VK_M             CAPSLOCK              156
  1540. VK_M             CAPSLOCK+SHIFT        236
  1541. ;                146 CYRILLIC CAPITAL LETTER TE
  1542. ;                226 CYRILLIC SMALL   LETTER TE
  1543. VK_N                                   226
  1544. VK_N             SHIFT                 146
  1545. VK_N             CAPSLOCK              146
  1546. VK_N             CAPSLOCK+SHIFT        226
  1547. ;                150 CYRILLIC CAPITAL LETTER TSE
  1548. ;                230 CYRILLIC SMALL   LETTER TSE
  1549. VK_W                                   230
  1550. VK_W             SHIFT                 150
  1551. VK_W             CAPSLOCK              150
  1552. VK_W             CAPSLOCK+SHIFT        230
  1553. ;                147 CYRILLIC CAPITAL LETTER U
  1554. ;                227 CYRILLIC SMALL   LETTER U
  1555. VK_E                                   227
  1556. VK_E             SHIFT                 147
  1557. VK_E             CAPSLOCK              147
  1558. VK_E             CAPSLOCK+SHIFT        227
  1559. ;                130 CYRILLIC CAPITAL LETTER VE
  1560. ;                162 CYRILLIC SMALL   LETTER VE
  1561. VK_D                                   162
  1562. VK_D             SHIFT                 130
  1563. VK_D             CAPSLOCK              130
  1564. VK_D             CAPSLOCK+SHIFT        162
  1565. ;                154 CYRILLIC CAPITAL LETTER HARD SIGN
  1566. ;                234 CYRILLIC SMALL   LETTER HARD SIGN
  1567. VK_]                                   234
  1568. VK_]             SHIFT                 154
  1569. VK_]             CAPSLOCK              154
  1570. VK_]             CAPSLOCK+SHIFT        234
  1571. ;                135 CYRILLIC CAPITAL LETTER ZE
  1572. ;                167 CYRILLIC SMALL   LETTER ZE
  1573. VK_P                                   167
  1574. VK_P             SHIFT                 135
  1575. VK_P             CAPSLOCK              135
  1576. VK_P             CAPSLOCK+SHIFT        167
  1577. ;                134 CYRILLIC CAPITAL LETTER ZHE
  1578. ;                166 CYRILLIC SMALL   LETTER ZHE
  1579. VK_;                                   166
  1580. VK_;             SHIFT                 134
  1581. VK_;             CAPSLOCK              134
  1582. VK_;             CAPSLOCK+SHIFT        166
  1583. [END keymap] // ibm866
  1584. [keymap swedish]
  1585. ; ae Swedish A with dots
  1586. VK_A                                            228
  1587. VK_A            SHIFT                           196
  1588. VK_A            CAPSLOCK                        196
  1589. VK_A            CAPSLOCK+SHIFT                  228
  1590. ; aa Swedish A with circle
  1591. VK_A            RIGHT_ALT                       229
  1592. VK_A            RIGHT_ALT+SHIFT                 196
  1593. VK_A            RIGHT_ALT+CAPSLOCK              196
  1594. VK_A            RIGHT_ALT+CAPSLOCK+SHIFT        229
  1595. VK_A            LEFT_ALT                        229
  1596. VK_A            LEFT_ALT+SHIFT                  196
  1597. VK_A            LEFT_ALT+CAPSLOCK               196
  1598. VK_A            LEFT_ALT+CAPSLOCK+SHIFT         229
  1599. ; oe (Swedish O with dots)
  1600. VK_O                                            246
  1601. VK_O            SHIFT                           214
  1602. VK_O            CAPSLOCK                        214
  1603. VK_O            CAPSLOCK+SHIFT                  246
  1604. [END keymap] // swedish
  1605. [keymap uk]
  1606. ; The following entries are thanks to Kirschke Guido <gkirschke@sbmv.ch>
  1607. ;
  1608. VK_`                                   " // dosen't work
  1609. VK_`             SHIFT                 !
  1610. VK_`             RIGHT_ALT             ]
  1611. ;
  1612. VK_0             SHIFT                 =
  1613. VK_0             CAPSLOCK              0
  1614. VK_0             CAPSLOCK+SHIFT        =
  1615. ;
  1616. VK_1             RIGHT_ALT