⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 telnet.cfg

📁 ReactOS是一些高手根据Windows XP的内核编写出的类XP。内核实现机理和API函数调用几乎相同。甚至可以兼容XP的程序。喜欢研究系统内核的人可以看一看。
💻 CFG
📖 第 1 页 / 共 5 页
字号:
; Console Telnet 2.0 keys.cfg
;
[comment]

This is a completely rewritten configuration file for Console Telnet 2.0.

Now you can define multiple keymaps, character maps, and combine them in your
own ways.

Possible definition:
 [COMMENT]
 ...
 [END COMMENT]
        This is for commenting a big part of text. can be nested.
        In text these also work:
           ; - First printable character in line, which is completely
               ignored.
           // - Like C++ comment

 [GLOBAL]
 ...
 [END GLOBAL]
        This part is required.  For an explanation look at the body.

 [KEYMAP name]
 ...
 [END KEYMAP]
        'name' - is a keymap name for reference.  In 'name' you can use
        any char exept spaces, '+', ':' and ']'. '+' and ':' reserved for
        CONFIG section.
        Body is a sequence of key definitions:

           <vk_name> [keymodifier[+keymodifier[+...]]] <keytranslation>

        example:
           VK_F1 RIGHT_ALT+RIGHT_CTRL this_would_print

        vk_name is an ASCII string equivalent to an entry in [GLOBAL].

        Valid keymodifiers are:
          RIGHT_ALT
          LEFT_ALT
          RIGHT_CTRL
          LEFT_CTRL
          SHIFT
          ENHANCED
          NUMLOCK
          CAPSLOCK
          SCROLLLOCK
          APP_KEY
          APP2_KEY
          APP3_KEY
          APP4_KEY

        Undefined enhanced keys will use the non-enhanced definition.

        APP_KEY, APP2_KEY, and APP3_KEY are application-specific key modes.
        Other terminal emulations (which have not yet been implemented) may
        use other definitions for these keys, but for the standard ANSI
        emulation, these mean:
                APP_KEY - VT100 application cursor keys
                APP2_KEY - VT52 cursor keys
                APP3_KEY - VT102 alternate keypad mode
                APP4_KEY - VT100 newline mode set

        keytranslation is the string you want printed for the key.
        The notation ^[ can be used to denote an escape character.
        Any ASCII value can be represented by

            \nnn where nnn is a 3 digit decimal ASCII value or
            \xhh where hh is a 2 digit hexadecimal ASCII value.

        Leading zeros may not be omitted.
        A value of \000(\x00) will not be transmitted.
	Rather, if you put \000 you undefine a key.  If you must send a NULL character,
	please use \TN_NULL\.

	A word on special sequences:
	Any sequence of the form: \TN_...\ is a special sequence, which will perform a
	special function for telnet.  You may substitute one of these for keytranslation
	for any key.  Some of the special sequences that telnet recognizes:

		\TN_ESCAPE              Escape into the telnet client
		\TN_SCROLLBACK          Go into the scrollback buffer
		\TN_DIAL                Start a new telnet session
		\TN_PASTE               Paste the contents of the clipboard to the server
		\TN_NULL                Send a null sequence to the server
		\TN_CR                  Send \rNULL to the server
		\TN_CRLF                Send \r\n to the server

        note: In order to have both left and right alt have the same
        action, you must create a separate def for left and right.

 [CHARMAP name]
 ...
 [END CHARMAP]
        'name' - is a charmap name for reference.  Requirements are the same
        as for keymap name.
        body is a sequence of char conversion definition:

           <host_char> <console_char>

        where host_char is a char received from host, and console_char
        is a char, which would be displayed on console.

        The main purpose of it is a conversion between differents code
        pages, for example, on former USSR part of world most unix's hosts
        uses 'koi8' code page, and on W95 machines - 866 code page.

        Any ASCII value can be represented by

            \nnn where nnn is a 3 digit decimal ASCII value or
            \xhh where hh is a 2 digit hexadecimal ASCII value.

        Leading zeros may be omitted.
        A value of \000(\x00) will not be accepted.

        Look for example at [charmap koi8-cp866].

 [CONFIG name]
 ...
 [END CONFIG]
        'name' - is a configuration name for reference.  Requirements are
        the same as for keymap name.

        You must define one with name 'default', which will be used as
        default.

        In the body of this section you can combine keymaps and set
        the charmap.  The format for this is:

           KEYMAP name_list [: <vk_name> [keymodifier[+keymodifier[+...]]] ]

             where
                  name_list:
                     keymap_name
                     keymap_name '+' name_list

                  keymap_name is a name of [KEYMAP]

             You can specify multiple keymaps, for first (the default)
             you can not define ': <vk_name> ...' part, but for the rest
             (secondary) you must!
             The ': <vk_name> ...' part defines a key for switch to this
             keymap.

             Assigning a switching key to the first (default) keymap will be
             ignored, but you can switch to by pressing a second time the
             switch key for the current keymap.

             If a key is not found in a switched keymap, a program will
             look for it in the default keymap. So, you only need to redefine
             needed keys in secondary keymaps.

           CHARMAP name

             define which charmap is to use.

           examples:
              [config default]
                 keymap default
              [end config]

              [config linux]
                 keymap default + linux
              [end config]

              [config default_koi8]
                 keymap default
                 keymap koi8u + koi8r : VK_/ RIGHT_ALT // russian keyboard
                 keymap koi8u         : VK_. RIGHT_ALT // ukranian

                 charmap koi8-cp866
              [end config]

              [config linux_koi8]
                 keymap default + linux
                 keymap koi8u + koi8r : VK_/ RIGHT_ALT // russian keyboard
                 keymap koi8u         : VK_. RIGHT_ALT // ukranian

                 charmap koi8-cp866
              [end config]

            For switching to russian keyboard just press RIGHT_ALT and '/'.
            To switch back press it again.

[end comment]

[GLOBAL]
; DO NOT MODIFY THE GLOBALS UNLESS YOU KNOW WHAT YOU ARE DOING.
; The globals are required for the key translation to work.
; do not place keymap before globals

VK_LBUTTON    01    Left mouse button
VK_RBUTTON    02    Right mouse button
VK_CANCEL     03    Control-break processing
VK_MBUTTON    04    Middle mouse button (three-button mouse)
;--         05-07   Undefined
VK_BACK       08    BACKSPACE key
VK_TAB        09    TAB key
;--         10-11   Undefined
VK_CLEAR      12    CLEAR key
VK_RETURN     13    ENTER key
;--         14-15   Undefined
;VK_SHIFT     16    SHIFT key
;VK_CONTROL   17    CTRL key
;VK_MENU      18    ALT key

VK_PAUSE      19    PAUSE key
;VK_CAPITAL   20    CAPS LOCK key
;--         21-25   Reserved for Kanji systems
;--           26    Undefined
VK_ESCAPE     27    ESC key
;--         28-31   Reserved for Kanji systems
VK_SPACE      32    SPACEBAR
VK_PGUP       33    PAGE UP key
VK_PGDN       34    PAGE DOWN key
VK_END        35    END key
VK_HOME       36    HOME key
VK_LEFT       37    LEFT ARROW key
VK_UP         38    UP ARROW key
VK_RIGHT      39    RIGHT ARROW key
VK_DOWN       40    DOWN ARROW key
VK_SELECT     41    SELECT key
;--           42    Original equipment manufacturer (OEM) specific
VK_EXECUTE    43    EXECUTE key
VK_SNAPSHOT   44    PRINT SCREEN key for Windows 3.0 and later
VK_INSERT     45    INS key
VK_DELETE     46    DEL key
VK_HELP       47    HELP key
VK_0          48    0 key
VK_1          49    1 key
VK_2          50    2 key
VK_3          51    3 key
VK_4          52    4 key
VK_5          53    5 key
VK_6          54    6 key
VK_7          55    7 key
VK_8          56    8 key
VK_9          57    9 key
;--         58-64   Undefined
VK_A          65    A key
VK_B          66    B key
VK_C          67    C key
VK_D          68    D key
VK_E          69    E key
VK_F          70    F key
VK_G          71    G key
VK_H          72    H key
VK_I          73    I key
VK_J          74    J key
VK_K          75    K key
VK_L          76    L key
VK_M          77    M key
VK_N          78    N key
VK_O          79    O key
VK_P          80    P key
VK_Q          81    Q key
VK_R          82    R key
VK_S          83    S key
VK_T          84    T key
VK_U          85    U key
VK_V          86    V key
VK_W          87    W key
VK_X          88    X key
VK_Y          89    Y key
VK_Z          90    Z key
;--          91-95  Undefined
VK_NUMPAD0    96    Numeric keypad 0 key
VK_NUMPAD1    97    Numeric keypad 1 key
VK_NUMPAD2    98    Numeric keypad 2 key
VK_NUMPAD3    99    Numeric keypad 3 key
VK_NUMPAD4    100   Numeric keypad 4 key
VK_NUMPAD5    101   Numeric keypad 5 key
VK_NUMPAD6    102   Numeric keypad 6 key
VK_NUMPAD7    103   Numeric keypad 7 key
VK_NUMPAD8    104   Numeric keypad 8 key
VK_NUMPAD9    105   Numeric keypad 9 key
VK_MULTIPLY   106   Multiply key
VK_ADD        107   Add key
VK_SEPARATOR  108   Separator key
VK_SUBTRACT   109   Subtract key
VK_DECIMAL    110   Decimal key
VK_DIVIDE     111   Divide key
VK_F1         112   F1 key
VK_F2         113   F2 key
VK_F3         114   F3 key
VK_F4         115   F4 key
VK_F5         116   F5 key
VK_F6         117   F6 key
VK_F7         118   F7 key
VK_F8         119   F8 key
VK_F9         120   F9 key
VK_F10        121   F10 key
VK_F11        122   F11 key
VK_F12        123   F12 key
VK_F13        124   F13 key
VK_F14        125   F14 key
VK_F15        126   F15 key
VK_F16        127   F16 key
VK_F17        128   F17 key
VK_F18        129   F18 key
VK_F19        130   F19 key
VK_F20        131   F20 key
VK_F21        132   F21 key
VK_F22        133   F22 key
VK_F23        134   F23 key
VK_F24        135   F24 key
;--         136-143 Unassigned
VK_NUMLOCK    144   NUM LOCK key
VK_SCROLL     145   SCROLL LOCK key
;--         146-185 Unassigned

;
;
;  John Ioannou (roryt@hol.gr)
;     Athens 30/03/97 10:42pm GMT-2
;  Correction for Win95
;
; This keys are used (at least in my keyboard -737/437 cp)
; for some common keys (equal, slash, backslash etc).
; Normally we don't want to define them, but
; there is a bug with win95 with them :
; with CAPS LOCK on they produce the SHIFTED character
; (minus gives _, = gives + etc).
;
;
;--         186-192 OEM specific
VK_;          186   ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -