home *** CD-ROM | disk | FTP | other *** search
- Version 1.3.0
- # Maxess keyboard definition file format (KEYDEF.DAT)
- #
- # File KEYDEF.DAT defines the workstation keyboard. This file
- # is a superset of file KEYDEF.DAT, containing explanatory comments.
- # When making changes to the keyboard definition, first make the changes
- # to this file and then copy it to file KEYDEF.DAT for testing. After,
- # testing is complete, remove all comments in file KEYDEF.DAT for
- # faster operation.
- #
- # There are two sections defining the keyboard:
- #
- # Section 1: Specifies scan code/shift states for keys that
- # are not supported by the BIOS (e.g. SysReq on an AT).
- #
- # Section 2: Specifies keyboard labels and BIOS codes for each
- # key sequence.
- #
- # General File Format:
- #
- # All lines beginning with '#' and blank lines are ignored and
- # can be used for comments.
- #
- # Each section is terminated with ".e" starting in column 1
- #
- # Note on number pad keys:
- #
- # If you specify entries for number pad keys, the number
- # pad option will no longer work with the Shift keys specified.
- # For example, the following entry in Section 1 specifies the
- # Right or Left Shift key, together with the End key.
- #
- # 03 4f f000
- #
- # This turns off the ability to use the '1' on the number pad
- # by pressing either of the shift keys and the End key. It does
- # not turn off the Num Lock method of using the number pad.
- #
- # It is recommended that NONE of the number pad keys be assigned
- # with either of the shift keys to avoid confusion over the number
- # pad.
- #
- # Note on Extended Keyboards:
- #
- # Extended keyboards have a duplicate set of cursor movement keys
- # to allow the user to keep Num Lock on and still move around on
- # the screen. Since the duplicate keys produce the same basic
- # Scan Codes, you cannot distinguish these duplicate keys from
- # each other in Maxess.
-
- # Section 1 - BIOS Keyboard Extensions
- #
- # This section is used to specify extensions to the BIOS's
- # keyboard codes. Many of the keystroke sequences available
- # on the keyboard are not normally supported through the BIOS
- # (e.g. Sys Req).
- #
- # Scan code/shift states are specified with the following format:
- #
- # <Shift Code> <Scan Code> <BIOS Code>
- #
- # The Shift Code is a hex byte value specifying which shift
- # keys are required for the keystroke sequence. Bits in the
- # Shift Code have the following meaning:
- #
- # 0 (LSB) Right Shift
- # 1 Left Shift
- # 2 Ctrl
- # 3 Alt
- #
- # If Left and Right Shift are both specified, either shift
- # key will be recognized as Shift. Other combinations must match
- # exactly (e.g. Ctrl Alt).
- #
- # Note that only a single Alt key is specified. On keyboards
- # with two Alt keys, either will be recognized as the Alt key.
- #
- # The Scan Code is the byte value that is associated with the
- # key. Use the SCANCODE utility to determine the Scan Code of
- # a key.
- #
- # The BIOS Code must be a unique hex code that does not conflict
- # with existing BIOS codes. For a list of existing BIOS codes for
- # your computer, consult your technical reference documentation, or
- # use the KBTEST Utility to display all BIOS codes. When adding
- # a new BIOS code for a non-data key (i.e. a function key), use
- # 00 for the low order byte. This causes the key to be recognized
- # as a function key and prevents interpretation of the low order
- # byte as an ASCII character.
- #
- # Use the KBTEST utility to determine if a key sequence is
- # supported through the BIOS or with the currently defined extensions.
- # If the desired key sequence is supported, the BIOS code will be
- # displayed. If not, nothing is displayed.
- #
- # To add an entry to Section 1, determine the Shift Code from
- # the codes described above. Run the SCANCODE utility to determine
- # the low-level scan code of the basic key. Choose a unique
- # BIOS extension value in the range F000 to FFFF.
- #
- # DO NOT SPECIFY HOTKEY SEQUENCES FOR OTHER TSR PROGRAMS IN
- # SECTION 1. This will prevent the TSR from recognizing its
- # hotkey when a Maxess program is in use. Note that the Hotkey
- # for the 3270 Program (Alt Pad +) is commented out.
-
- # Unshifted keys:
- #00 4c 0000 # Pad Center # (TAKES AWAY Number Pad 5 key)
- 00 54 b100 # Sys Req
-
- # Shifted keys:
- 03 01 b200 # Shift Esc
- 03 54 b300 # Shift Sys Req
- 03 4a b400 # Shift Pad -
- 03 4e b500 # Shift Pad +
- 03 39 b600 # Shift Space
- 03 0e b700 # Shift Backspace
- 03 1c b800 # Shift Enter
- #03 35 0000 # Shift Pad / (TURNS OFF '?')
- #03 37 0000 # Shift Pad * (TURNS OFF PRINT SCREEN on 83/84 KBD)
-
- # Ctrl keys:
- 04 02 b900 # Ctrl 1
- 04 04 ba00 # Ctrl 3
- 04 05 bb00 # Ctrl 4
- 04 06 bc00 # Ctrl 5
- 04 08 bd00 # Ctrl 7
- 04 09 be00 # Ctrl 8
- 04 0a bf00 # Ctrl 9
- 04 0b c000 # Ctrl 0
- 04 0d c100 # Ctrl =
- 04 28 c200 # Ctrl '
- 04 29 c300 # Ctrl `
- 04 27 c400 # Ctrl ;
- 04 33 c500 # Ctrl ,
- 04 34 c600 # Ctrl .
- 04 35 c700 # Ctrl /
- 04 01 c800 # Ctrl Esc
- 04 54 c900 # Ctrl Sys Req
- 04 48 ca00 # Ctrl Up Arrow
- 04 4c cb00 # Ctrl Pad Center
- 04 50 cc00 # Ctrl Down Arrow
- 04 39 cd00 # Ctrl Space
-
- # Alt keys
- #
- # Note: To use the BIOS feature that allows entry of an arbitrary
- # number via the Alt key and the number pad, remove the
- # definitions for the number pad below (**).
- 08 54 ce00 # Alt Sys Req
- 08 1c cf00 # Alt Enter
- 08 37 d000 # Alt Pad *
- 08 47 d100 # Alt Home (**)
- 08 48 d200 # Alt Up Arrow (**)
- 08 49 d300 # Alt PgUp (**)
- 08 4a d400 # Alt Pad -
- 08 4b d500 # Alt Left Arrow (**)
- 08 4c d600 # Alt Pad Center (**)
- 08 4d d700 # Alt Right Arrow (**)
- #08 4e 0000 # Alt Pad + (Used for 3270 Hotkey)
- 08 4f d900 # Alt End (**)
- 08 50 da00 # Alt Down Arrow (**)
- 08 51 db00 # Alt PgDn (**)
- 08 39 dc00 # Alt Space
- 08 52 dd00 # Alt Ins (**)
- 08 53 de00 # Alt Del
- .e
-
- # Section 2 - Keyboard Labels and BIOS Codes
- #
- # Each key sequence supported by the Maxess product must be
- # specified in the matrix in this section.
- #
- # Each line in this section has the format:
- #
- # "<label>" <Normal> <Shifted> <Ctrl> <Alt>
- #
- # The <label> field specifies the text that appears on the key.
- # This field must be enclosed in double quotes. Special characters
- # can be displayed using the '\ooo' format using three octal digits
- # to form the binary number required.
- #
- # The Normal, Shifted, Ctrl, and Alt fields specify the BIOS codes
- # or BIOS extension codes (from Section 1) associated with the
- # key sequence. To get BIOS codes, use the KBTEST utility.
- #
- # If a key has more than one label, multiple entries can be made.
- # Note that the Tab key on a standard IBM PC has two labels - one
- # for the normal tab, and another for the shifted tab, which is a
- # backtab. If one entry is made for the tab key, the shifted tab key
- # label will appear in the product as "Shift -->|". Instead,
- # a second entry is made with the shifted label, and the shifted
- # BIOS code is moved from the first entry's Shift column to the
- # second entry's Normal column.
- #
- # If the ASCII code produced by a key matches its label, a '0' can be
- # used for the BIOS code. Note that the normal ASCII data keys
- # do not require BIOS codes.
- #
- # The maximum number of characters in a label depends on the longest
- # prefix used ("Shift", "Ctrl" or "Alt"). The total of the
- # longest prefix length and the label string should not
- # exceed 20 characters. Octal codes (\020) are counted as one.
- #
- # To support combined shifted keys, first add an entry in
- # Section 1 with the appropriate shift code set for both shift keys
- # and a unique BIOS code. Then, add an entry in Section 2 which
- # includes one of the shift labels in the basic label, and enter
- # the unique BIOS code from Section 1 in the appropriate column
- # for the other shift key.
- #
- # For example, to add the "Ctrl Alt F1" key sequence, add
- #
- # 0c 3b f0nn
- #
- # to Section 1 (where f0nn is a unique BIOS extended code), and
- #
- # "Alt F1" 0 0 f0nn 0
- #
- # to Section 2. Do not use combinations that produce key labels
- # greater than 20 bytes.
- #
- # Key Label BIOS Codes:
- # Normal Shift Ctrl Alt
-
- "F1" 3b00 5400 5e00 6800
- "F2" 3c00 5500 5f00 6900
- "`" 0 0 c300 2900
- "1" 0 0 b900 7800
- "2" 0 0 0300 7900
- "3" 0 0 ba00 7a00
- "4" 0 0 bb00 7b00
- "5" 0 0 bc00 7c00
- "6" 0 0 071e 7d00
- "7" 0 0 bd00 7e00
- "8" 0 0 be00 7f00
- "9" 0 0 bf00 8000
- "0" 0 0 c000 8100
- "-" 0 0 0c1f 8200
- "=" 0 0 c100 8300
- "\\" 0 0 2b1c 2b00
- "\021--" 0e08 b700 0e7f 0e00 # Backspace
- "Esc" 011b b200 c800 0100
- "Sys Req" b100 b300 c900 ce00
- "F3" 3d00 5600 6000 6a00
- "F4" 3e00 5700 6100 6b00
- "--\020\263" 0f09 0 9400 a500 # Tab
- "\263\021--" 0f00 0 0 0 # Backtab
- "Q" 0 0 1011 1000
- "W" 0 0 1117 1100
- "E" 0 0 1205 1200
- "R" 0 0 1312 1300
- "T" 0 0 1414 1400
- "Y" 0 0 1519 1500
- "U" 0 0 1615 1600
- "I" 0 0 1709 1700
- "O" 0 0 180f 1800
- "P" 0 0 1910 1900
- "[" 0 0 1a1b 1a00
- "]" 0 0 1b1d 1b00
- "Home" 4700 0 7700 d100
- "\030" 4800 0 ca00 d200 # Up Arrow
- "PgUp" 4900 0 8400 d300
-
- # NOTE: On 101/102 keyboards, CTRL-Pad-Star has a unique scan code
- # so we include them both
- "Pad *" 372a 0 7200 d000
- "Pad *" 0 0 9600 0
-
- "F5" 3f00 5800 6200 6c00
- "F6" 4000 5900 6300 6d00
- "A" 0 0 1e01 1e00
- "S" 0 0 1f13 1f00
- "D" 0 0 2004 2000
- "F" 0 0 2106 2100
- "G" 0 0 2207 2200
- "H" 0 0 2308 2300
- "J" 0 0 240a 2400
- "K" 0 0 250b 2500
- "L" 0 0 260c 2600
- ";" 0 0 c400 2700
- "'" 0 0 c200 2800
- "\021\304\331" 1c0d b800 1c0a cf00 # Enter (CR)
- "\021-" 4b00 0 7300 d500 # Left Arrow
- "Center" 0 0 cb00 d600 # No label center of pad
- "-\020" 4d00 0 7400 d700 # Right Arrow
- "Pad -" 4a2d b400 8e00 d400
- "F7" 4100 5a00 6400 6e00
- "F8" 4200 5b00 6500 6f00
- "Z" 0 0 2c1a 2c00
- "X" 0 0 2d18 2d00
- "C" 0 0 2e03 2e00
- "V" 0 0 2f16 2f00
- "B" 0 0 3002 3000
- "N" 0 0 310e 3100
- "M" 0 0 320d 3200
- "," 0 0 c500 3300
- "." 0 0 c600 3400
- "/" 0 0 c700 3500
- "End" 4f00 0 7500 d900
- "\031" 5000 0 cc00 da00 # Down Arrow
- "PgDn" 5100 0 7600 db00
- "Pad +" 4e2b b500 9000 d800
- "F9" 4300 5c00 6600 7000
- "F10" 4400 5d00 6700 7100
- "space-bar" 3920 b600 cd00 dc00
- "Ins" 5200 0 9200 dd00
- "Del" 5300 0 9300 de00
-
- # 101/102 keyboard extended keys
- "F11" 8500 8700 8900 8b00
- "F12" 8600 8800 8a00 8c00
- "Pad Enter" e00d 0 e00a a600
- "Pad /" e02f 0 9500 a400
-
- # Duplicate 101/102 keys (not supported as separate keys)
- #"Home" 47e0 0 77e0 9700
- #"\030" 48e0 0 8de0 9800 # Up Arrow
- #"PgUp" 49e0 0 84e0 9900
- #"\021-" 4be0 0 73e0 9b00 # Left Arrow
- #"-\020" 4de0 0 74e0 9d00 # Right Arrow
- #"End" 4fe0 0 75e0 9f00
- #"\031" 50e0 0 91e0 a000 # Down Arrow
- #"PgDn" 51e0 0 76e0 a100
- #"Ins" 52e0 0 92e0 a200
- #"Del" 53e0 0 93e0 a300
- .e
-