


.The following table lists all of the keys that can be redefined. The table lists the key's full name, its two-character name (called the "key code"), and the corresponding key used on an MS-DOS and Windows keyboards. The key code is used in the terminal database file on UNIX and VMS systems to identify the corresponding key-sequence. For more information about user-defined keys, see Appendix M under Keyboard Differences.
| Key
| Key Code (terminal db file)
| MS-DOS Keyboard
| Windows 95/98 Keyboard
|
| Host's Backspace
| ZB
| BkSp
| BkSp
|
| Host's Line-Kill
| ZK
| -
| -
|
| Cntrl-A - Cntrl-Z
| ^A - ^Z
| Ctl A-Z
| Ctl A-Z
|
| Escape
| ^[
| Esc
| Esc
|
| Control-\
| ^\
| Ctl-\
| Ctl-\
|
| Control-]
| ^]
| Ctl-]
| Ctl-]
|
| Control-^
| ^^
| Ctl-^
| Ctl-^
|
| Control-_
| ^_
| Ctl-_
| Ctl-_
|
| DEL
| 127
| Ctl-BkSp
| Ctl-BkSp
|
| F1 - F10
| k1 - k0
| F1 - F10
| F1 - F10
|
| F11 - F20
| K1 - K0
| Shft F1 - F10
| Shft F1 - F10
|
| Down Arrow
| kd
| Down
| Down
|
| Home
| kh
| Home
| Home
|
| Left Arrow
| kl
| Left
| Left
|
| Right Arrow
| kr
| Right
| Right
|
| Up Arrow
| ku
| Up
| Up
|
| Insert Line
| kA
| Alt-I
| Alt-I;
Ctl-Ins |
| Tab Left
| kB
| Shft-Tab
| Shft-Tab
|
| Clear-to-End
| kE
| Ctl-End
| Ctl-End
|
| Delete Line
| kL
| Alt-K
| Alt-K;
Ctl-Del |
| Page Down
| kN
| PgDn
| PgDn
|
| Page Up
| kP
| PgUp
| PgUp
|
| Cancel
| Kc
| Alt-X
| Alt-X
|
| Next Paragraph
| Kd
| Ctl-Down
| Ctl-Down
|
| Word Left
| Kl
| Ctl-Left
| Ctl-Left
|
| Word Right
| Kr
| Ctl-Right
| Ctl-Right
|
| Previous Paragraph
| Ku
| Ctl-Up
| Ctl-Up
|
| Exit
| Kx
| Alt-E
| Alt-E
|
| Attention
| KA
| Alt-A
| Alt-A
|
| Bottom
| KB
| Ctl-PgDn
| Ctl-PgDn
|
| Clear
| KC
| Ctl-Home
| Ctl-Home
|
| Command (Do)
| KD
| Alt-D
| Alt-D
|
| End
| KE
| End
| End
|
| Find
| KF
| Alt-F
| Alt-F
|
| Insert Character
| KI
| Ins
| Ins
|
| Page Left
| KL
| Alt-L
| Alt-L
|
| Mark (Select)
| KM
| Alt-M
| Alt-M
|
| Print
| KP
| Alt-P
| Alt-P
|
| Page Right
| KR
| Alt-R
| Alt-R
|
| Send
| KS
| Alt-S
| Alt-S
|
| Top
| KT
| Ctl-PgUp
| Ctl-PgUp
|
| Save
| KV
| Alt-V
| Alt-V
|
| Delete Character
| KX
| Del
| Del
|
| Help
| K?
| Alt-H
| Alt-H
|
| User-defined keys 1 - 10
(1-6 on Windows) | U1 - U0
(U1-6 on Windows) | Alt F1 - F10
| F11-F12
Shft-F11-F12 Ctl-F11-F12 |
| User-defined key 11-20
| A1 - A0
| Alt-1 - Alt-0
| Ctl-1 - Ctl-0 |
| Key
| Key Code (terminal db file)
| MS-DOS and Windows Keyboards
|
| Control F1 - F10
| C1 - C0
| Ctl F1 - F10
|
| Alt-Hyphen
| A-
| Alt-
|
| Alt-Equals
| A=
| Alt-=
|
| Alt-B
| AB
| Alt-B
|
| Alt-C
| AC
| Alt-C
|
| Alt-G
| AG
| Alt-G
|
| Alt-J
| AJ
| Alt-J
|
| Alt-N
| AN
| Alt-N
|
| Alt-O
| AO
| Alt-O
|
| Alt-Q
| AQ
| Alt-Q
|
| Alt-T
| AT
| Alt-T
|
| Alt-U
| AU
| Alt-U
|
| Alt-W
| AW
| Alt-W
|
| Alt-Y
| AY
| Alt-Y
|
| Alt-Z
| AZ
| Alt-Z |
The table lists the mouse action, the corresponding key code, and the default exception value returned. See Chapter 7, "Using the Mouse" in Book 2, "User Interface Programming" for details on mouse handling.
| Action
| Key Code
| Exception Value
|
| Mouse moved
| Mv
| 80
|
| Left button pushed
| Ml
| 81
|
| Left button released
| ML
| 82
|
| Left button double-clicked
| M1
| 83
|
| Middle button pushed
| Mm
| 84
|
| Middle button released
| MM
| 85
|
| Middle button double-clicked
| M2
| 86
|
| Right button pushed
| Mr
| 87
|
| Right button released
| MR
| 88
|
| Right button double-clicked
| M3
| 89 |
Control keys (Control plus another key) are not defined in the terminal database file. They are directly mapped by the runtime system to the corresponding control-key ASCII value. They can be referred to by either their ASCII value or by the key code listed. The DEL key does not have a key code; it can be referred to only by its ASCII value (127).
Some keys may have more than one name. When this occurs, the names have the following precedence:
1. Host name
2. Terminal database file name
3. Control-key name (if applicable)
For example, if a terminal whose left arrow key produces a Control-H is being used, and Control-H is the system's backspace key, that key would be treated as a Host's Backspace key (ZB). If the host's backspace were redefined (by operating system command) to be some other key, then this key would be considered a Left Arrow key (kl). It would be considered a Control-H (^H) only if the terminal database file were edited and the "kl" definition changed or removed.