home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23DOC.ZIP / APPENDIX.E < prev    next >
Encoding:
Text File  |  1991-07-01  |  6.9 KB  |  207 lines

  1. E.1    NCSA Telnet
  2.  
  3.  
  4. Key-mapping    E.1
  5.  
  6.  
  7. National Center for Supercomputing Applications
  8.  
  9.  
  10. June 1991
  11.  
  12.                                                               
  13.  
  14.  
  15. June 1991
  16.  
  17.  
  18.  
  19.  
  20.  
  21. Appendix  E    Key-mapping
  22.  
  23.  
  24.  
  25. Overview
  26. NCSA Telnet for the PC incorporates many of the key-mapping 
  27. elements found in the MS-Kermit program. Because of this 
  28. adaptation, we've included the following Appendix, which except 
  29. for minor changes, contains excerpts that appear exactly as they 
  30. did in the MS-Kermit documentation. Copyright information 
  31. granting the use of this segment is cited below.
  32.  
  33.  
  34. Copyright Information
  35. Copyright (C)  1981, 1988
  36. Trustees of Columbia University in the City of New York
  37.  
  38. Permission is granted to any individual or institution to use, copy, 
  39. or redistribute this document so long as it is not sold for profit, and 
  40. provided this copyright notice is retained.
  41.  
  42.  
  43. Kermit Verb Usage
  44. NCSA Telnet contains a subset of the Kermit verbs listed below. 
  45. Kermit verbs with a star are supported while unmarked verbs will 
  46. cause an error if they are in a keyboard mapping file. Also 
  47. included is a utility from the MS-Kermit 2.32 distribution which 
  48. will determine what the actual kermit key code is for any 
  49. combination of keys. Use this in the telnet keyboard mapping file 
  50. as the code to map from. See the telnet.key file included with this 
  51. release for an example keyboard mapping file.
  52.  
  53. NCSA Telnet does not support the extended SET KEY options such 
  54. as:
  55.  
  56. SET KEY ON, SET KEY OFF, or SET KEY CLEAR
  57.  
  58. Also, it is impossible to map the ALT+alphabetical keys to 
  59. anything with the keyboard mapping interface. NCSA Telnet traps 
  60. these internally before they actually reach the mapping interface.
  61.  
  62.  
  63. Set Key
  64.  
  65. Syntax
  66. SET KEY key-specified {key-definition}
  67.  
  68.  
  69. Uses of SET KEY
  70. Ñ    You're used to having the ESC key in the upper-left corner of the 
  71. keyboard, but your new PC keyboard has an accent grave (" ' ") 
  72. key there. You can use SET KEY to make the accent key 
  73. transmit an ESC, and you can assign accent grave to some other 
  74. key.
  75.  
  76. Ñ    You send a lot of electronic mail, and always sign it the same 
  77. way. You can put your "signature" on a single key to save 
  78. yourself a lot of repetitive typing.
  79.  
  80. Ñ    You must set up your PC's function keys or numeric keypad to 
  81. work properly with a host application.
  82.  
  83. The SET KEY command does these things and more, while SHOW 
  84. KEY gives us assistance. A key can be defined to:
  85.  
  86. Ñ    send a single character other than what it would normally send
  87. Ñ    send a string of multiple characters
  88. Ñ    send itself again
  89.  
  90. SET KEY specifies that when you press the designated key during 
  91. terminal emulation, the specified character or string is sent or the 
  92. specified Kermit action verb is performed.
  93.  
  94. Using the SET KEY command, you create a key-specifier. The 
  95. key-specifier is the identification of the key expressed in system-
  96. dependent terms. This key can be a letter, such as Q for the key 
  97. which produces an uppercase Q, or the numeric ASCII value of the 
  98. letter in backslash notation (e.g., "\81"), or else the numerical 
  99. "scan code: observed by the system when the key is pressed (e.g., 
  100. "\3856" for CTRL-ALT-SHIFT-Q on an IBM PC). Material 
  101. printed on keycaps is not necessarily a guide to what the key-
  102. specifier should be.
  103.  
  104. A string definition is one or more characters, including 8-bit 
  105. values expressed in backslash form, such as
  106.  
  107. SET KEY    \315 directory\13    IBM F1 key sends     
  108.         "directory<cr>"
  109.  
  110. SET KEY    S  X    S key sends upper case X
  111.         (a mean trick)
  112.  
  113. SET KEY    T  \27 [m    T key sends three bytes:  
  114.             ESC, [, m
  115.  
  116. SET KEY    \2336  {del } xxx    ALT-D sends "del"
  117. SET KEY    \324  \Kexit    F10 escapes back to Kermit-MS> 
  118.         prompt.
  119.  
  120. The string begins with the first non-spacing character following 
  121. the key identification and continues until the end of line, 
  122. exclusive of any trailing spaces. You can use curly braces, {...} 
  123. can be used to delimit the string in case you want the definition to 
  124. include trailing spaces. The program ignores all text after the 
  125. closing bracket.
  126.  
  127. This manual does not contain a list of all the scan codes for all the 
  128. keys on all the keyboards on all the PCs supported by NCSA Telnet. 
  129. In order to obtain the scancode for a key, you must use the scanchek 
  130. utility.
  131.  
  132.  
  133. Kermit Action Verbs
  134.  
  135. An action verb is the shorthand expression for a named Kermit 
  136. procedure, such as "generate the proper sequence for a left arrow," 
  137. "show status," "send a BREAK," and others; verbs are complex 
  138. actions and each verb has a name. In a key definition precede the 
  139. verb name by a backslash K (\K) to avoid being confused with a 
  140. string. You cannot assign verbs and strings together on a key.
  141.  
  142. Entering the commands:
  143.  
  144. SET KEY \331 \Klfarr
  145. SET KEY \2349 \Kexit
  146.  
  147. makes the IBM keyboard left arrow key execute the verb named 
  148. lfarr, which sends the proper escape sequence for a VT102 left 
  149. arrow key (which changes depending on the internal state of the 
  150. VT102). The leading \K identifies the definition as a Kermit verb, 
  151. so no string can start as \K or as \{K in upper or lower case (use 
  152. \92K). The second example has ALT-X invoking the Leave-
  153. Connect-Mode verb "exit" (same as Kermit escape  character "^]" 
  154. followed by C).
  155.  
  156. Each system has its own list of verbs and predefined keys. Table 
  157. E.1 shows those available for the IBM PC family (there are also 
  158. some additional verbs for reassigning Heath or VT100 function 
  159. keys, see section 1.17.2 of the original Kermit documentation). 
  160. The SET KEY command shows the list of available verbs when a 
  161. query mark (?)  is given as a definition. 
  162.  
  163. Table E.1    MS-Kermit Verbs 
  164. for the IBM PC 
  165. Family
  166. Verb    Meaning
  167.  
  168. \Kupscn    Roll up (back) to previous screen
  169. \Kdnscn    Roll down (forward) to next screen
  170. \Khomscn    Roll up to top of screen memory
  171. \Kendscn    Roll down to end of screen memory (current 
  172.     position)
  173. \Kupone    Roll screen up one line
  174. \Kdnone    Roll screen down one line
  175. \Kprtscn    Print the current screen
  176. \Kdump    Append the current screen to dump file
  177. \Kholdscrn    Toggle hold screen mode
  178. \Klogoff    Turn off session logging
  179. \Klogon    Turn on session logging
  180. \Ktermtype    Toggle terminal type
  181. \Kreset    Reset terminal emulator to initial state
  182. \Kmodeline    Toggle modeline off/on
  183. \Kbreak    Send a BREAK signal
  184. \Klbreak    Send a "long BREAK" signal
  185. \Khangup    Drop dTR so modem will hang up phone
  186. *\Knull    Send a null (ASCII 0)
  187. \Kdos    "Push" to DOS
  188. \Khelp    Display CONNECT help message
  189. \Kstatus    Display STATUS message
  190. \Kterminals    Invoke user-defined macro TERMIANLS, if any
  191. \Kterminalr    Invoke user-defined macro TERMINALR, if any
  192. \Kexit    Escape back from CONNECT mode
  193. *\Kgold, \Kpf1    VT102 keypad function key PF1
  194. *\Kpf2..\Kpf4    VT102 keypad function keys
  195. *\Kkp0..\Kkp9    VT102 keypad numeric keys
  196.  
  197. Other VT102 keypad keys:
  198. *\Kkpdot, \Kkpminus, \Kkpcoma, \Kkpenter
  199.  
  200. VT102 cursor (arrow) keys:
  201. *\Kuparr, \Kdnarr, \Klfarr, \Krtarr
  202.  
  203.  
  204. NOTE:  * signifies that NCSA Telnet 2.3 supports the verb.
  205.  
  206.  
  207.