home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / mskermit / msiwp3.ini < prev    next >
Text File  |  2020-01-01  |  30KB  |  654 lines

  1. ; File WP30.INI
  2. ;****************************************************************************;
  3. ;*                WORDPERFECT MS-KERMIT INITIALIZATION FILE                 *;
  4. ;*                        (Revised January 4, 1990)                         *;
  5. ;*                                                                          *;
  6. ;*                 (C)Copyright 1990 - All Rights Reserved                  *;
  7. ;*                WordPerfect Corporation - Orem, Utah  USA                 *;
  8. ;*                                                                          *;
  9. ;*   For use with the UNIX and VAX/VMS versions of WordPerfect Products     *;
  10. ;*        running over the vt320 Emulator of MS-Kermit version 3.0          *;
  11. ;*     (Requires modification to work with earlier versions of Kermit)      *;
  12. ;****************************************************************************;
  13. ;->>>                                                                    <<<-;
  14. ;->>> WordPerfect 5.0 on VAX/VMS and UNIX systems will work together     <<<-;
  15. ;->>> with MS-Kermit 3.0 to display high resolution monochrome or color  <<<-;
  16. ;->>> graphics on your MS-DOS PC's graphics card!                        <<<-;
  17. ;->>>                                                                    <<<-;
  18. ;->>> This initialization file may ALSO be used with the UNIX and        <<<-;
  19. ;->>> VAX/VMS versions of other products from WordPerfect Corporation,   <<<-;
  20. ;->>> including WordPerfect 4.2, PlanPerfect, WordPerfect Office, etc.   <<<-;
  21. ;->>> WordPerfect Office consists of a number of individual              <<<-;
  22. ;->>> applications, tied together under one convenient shell.  These     <<<-;
  23. ;->>> applications include a sophisticated Electronic Mail system, a     <<<-;
  24. ;->>> WordPerfect-like Text Editor, an Appointment Calendar, a           <<<-;
  25. ;->>> Calculator, and others.                                            <<<-;
  26. ;->>>                                                                    <<<-;
  27. ;->>> To receive more information about WordPerfect products, or to      <<<-;
  28. ;->>> order, please call or write:                                       <<<-;
  29. ;->>>                                                                    <<<-;
  30. ;->>>    WordPerfect UNIX Products   OR  WordPerfect VAX/VMS Products    <<<-;
  31. ;->>>     1555 N. Technology Way          1555 N. Technology Way         <<<-;
  32. ;->>>     Orem, Utah 84057 (USA)          Orem, Utah 84057 (USA)         <<<-;
  33. ;->>>         (801) 222-5300                  (801) 222-5500             <<<-;
  34. ;->>>      FAX: (801) 222-5377             FAX: (801) 222-5577           <<<-;
  35. ;->>>                                                                    <<<-;
  36. ;----------------------------------------------------------------------------;
  37. ;For information or questions specifically about MS-DOS Kermit, please
  38. ;contact Columbia University:
  39. ;
  40. ;                       Kermit Distribution
  41. ;       Columbia University Center for Computing Activities
  42. ;                      612 West 115th Street
  43. ;                     New York, NY 10025 (USA)
  44. ;                         (212) 854-3703
  45. ;
  46. ;----------------------------------------------------------------------------
  47.  
  48. echo Defining Function Keys for WordPerfect Products...
  49.  
  50. ;----------------------------------------------------------------------------
  51. ;KEYS WITH SPECIAL MS-KERMIT FUNCTIONS:
  52. ;     Here is a list of keys under the WP key mapping which have special
  53. ;     functions local to MS-Kermit.  Some are new keys, which had no
  54. ;     special meaning in the default MS-Kermit key mapping.  Others had to
  55. ;     be remapped from their default location, because of conflict with WP
  56. ;     functions.  If you need the functionality of other default MS-Kermit
  57. ;     keys that have been overridden by WP keys, but not remapped, see the
  58. ;     instructions below for HOW TO CUSTOMIZE THIS INITIALIZATION FILE.
  59. ;
  60. ;     NEW KEY          FUNCTION                 ORIGINAL KEY    OVERRIDDEN BY
  61. ;     -------          --------                 ------------    -------------
  62. ;     ALT-PERIOD(.)    Exit kermit connection   ALT-X           Quick Macro-X
  63. ;     ALT-SEMICOLON(;) Dump kermit screen       CTRL-END        WP Del to EOL
  64. ;     ALT-ESC          True Escape (ASCII 27)   ESC             WP Escape (n)
  65. ;     ALT-RETURN       Linefeed (ASCII 10)      CTRL-J          WP Hard Page
  66. ;     ALT-MINUS(-)     Exit graphics mode       same            none
  67. ;     ALT-APOSTROPHE(')Toggle between WP key    none            none
  68. ;                      mapping & vt320 default
  69. ;
  70. ;--------------------------------------------------------------------------
  71. ;USING MS-KERMIT WITH UNIX AND VAX/VMS WORDPERFECT PRODUCTS:
  72. ;     Read sections I. and II. for UNIX instructions
  73. ;     Read sections I. and III. for VAX/VMS instructions
  74. ;
  75. ;I.   To initialize MS-Kermit for running UNIX or VAX/VMS WordPerfect
  76. ;     products:
  77. ;     1)   Create a file called "mskermit.ini" in the same directory as your
  78. ;          "kermit.exe" and this "wp30.ini" file, if it is not already
  79. ;          created.  Make sure the mskermit.ini file sets the communications
  80. ;          parameters appropriately for your serial connection.
  81. ;          For example:
  82. ;               set speed 9600      ;or 2400, or 19200, or whatever
  83. ;               set port COM1       ;or COM2 or whatever
  84. ;               set display 7-BIT   ;or 8-BIT if you have an 8-bit connection
  85. ;               set parity EVEN     ;or ODD, or NONE, or whatever
  86. ;               set local-echo OFF  ;or ON (usually OFF)
  87. ;               set flow-control XON/XOFF     ;or NONE (usually XON/XOFF)
  88. ;               set handshake NONE            ;or XON or XOFF
  89. ;     2)   By default, MS-Kermit auto-senses what kind of graphics card you
  90. ;          have, but if you have a VGA card, Kermit by default will run it in
  91. ;          EGA mode (640x350) so that it has room to save and restore the
  92. ;          complete graphics screen when you toggle in and out of graphics
  93. ;          mode.  If you would rather have the full VGA resolution (640x480)
  94. ;          and you don't care if the last few pixel lines are not saved and
  95. ;          restored, you can add the following line to your mskermit.ini file:
  96. ;               set terminal graphics VGA     ;AUTO-SENSING is default
  97. ;     3)   If you want the WP key mapping to take effect IMMEDIATELY, when
  98. ;          you run MS-Kermit, you should add the following lines to the end
  99. ;          of your mskermit.ini file:
  100. ;               take wp30.ini
  101. ;               connect
  102. ;          Otherwise, if you want the default vt320 key mapping (which maps
  103. ;          F1-F4 to PF1-PF4, etc.) to be in effect until you press
  104. ;          ALT-APOSTROPHE('), or the host application sends ESC[?34h, then
  105. ;          you should add the following lines to the end of your mskermit.ini
  106. ;          file:
  107. ;               set terminal vt320
  108. ;               define terminalS take wp30.ini, connect
  109. ;               set key \2344 \KterminalS  ;assign macro to ALT-APOSTROPHE(')
  110. ;               connect
  111. ;
  112. ;II.  To run UNIX WordPerfect products over the MS-Kermit vt320 emulator:
  113. ;     1)   Start kermit.exe on your PC, with the mskermit.ini file described
  114. ;          above.
  115. ;     2)   Check the physical connection from your PC's serial port to the
  116. ;          UNIX host, or to a dial-out modem, to make sure it's ready.
  117. ;     3)   Login to the UNIX host (dialing out if necessary).
  118. ;     4)   Type "setenv WPTERM kermit" if you're in a csh shell, or
  119. ;          "WPTERM=kermit; export WPTERM" if you're in an sh shell.
  120. ;     5)   Make sure your PATH variable is set up correctly, and that the
  121. ;          WordPerfect application is installed and ready to run according to
  122. ;          its documentation.
  123. ;     6)   Run the application.  (Type "wp" or "shell" or whatever.)
  124. ;     7)   Press F3 for Kermit-specific help.  F1 through F10 (alone or with
  125. ;          Shift, Ctrl, or Alt) and Application Keypad keys will work the same
  126. ;          as they do running the PC version of the WordPerfect product.  F11
  127. ;          and F12 will always perform the same functions as Alt-F3 and Alt-F4
  128. ;          respectively (usually "Reveal Codes" and "Block").
  129. ;     8)   To select the correct graphics driver in WordPerfect 5.0, press
  130. ;          Shift-F1, D, G to get to the "Setup: Display: Graphics Screen Type"
  131. ;          menu.  If your PC has a graphics card, you will want to select the
  132. ;          "kermit30_sixel" (or equivalent) graphics driver; otherwise select
  133. ;          the "text" driver.
  134. ;
  135. ;III. To run VAX/VMS WordPerfect products over the MS-Kermit vt320 emulator:
  136. ;     1)   Start kermit.exe on your PC, using the mskermit.ini file described
  137. ;          above.
  138. ;     2)   Check the physical connection from your PC's serial port to the
  139. ;          VAX/VMS host, or to a dial-out modem, to make sure it's ready.
  140. ;     3)   Login to the VAX/VMS host (dialing out if necessary).
  141. ;     4)   Type "set terminal/inquire/noeightbit/hostsync/ttsync" to make VMS
  142. ;          set the terminal port characteristics according to what MS-Kermit
  143. ;          answers back.  (You can type "show terminal" to see what they've
  144. ;          been set to.)
  145. ;     5)   Make sure the WordPerfect application is installed and ready to run
  146. ;          according to its documentation.
  147. ;     6)   Run the application.  (Type "wp" or "office" or whatever.)
  148. ;     7)   Press F3.  If you get the HELP menu, then your PC-function keys are
  149. ;          probably mapped correctly.  F1 through F10 (alone or with Shift,
  150. ;          Ctrl, or Alt) and Application Keypad keys will work the same as
  151. ;          they do running the PC version of the WordPerfect product.  F11 and
  152. ;          F12 will always perform the same functions as Alt-F3 and Alt-F4
  153. ;          respectively (usually "Reveal Codes" and "Block").  The keystrokes
  154. ;          described under HELP may be for a vt100 keyboard, instead of your
  155. ;          PC keyboard, however, you can press F3, F3, 4 and select each of
  156. ;          menu items 1 through 3 to see the complete PC keyboard Function key
  157. ;          layout.
  158. ;     8)   If pressing F3 does NOT display the HELP menu, you are probably
  159. ;          running WordPerfect 5.0 and you need to select a different
  160. ;          Keyboard Layout.  Type Ctrl-F, S, E, K, to get to the "Setup:
  161. ;          Keyboard Layout" menu.  Arrow down to the keyboard layout named
  162. ;          "WPCORP_WP42_DEFAULT," and press RETURN to select it, followed by
  163. ;          RETURN to exit out of Setup.  Now you should be able to use all
  164. ;          of the PC Function keys as described above in the previous step.
  165. ;          NOTE:  You can always use Ctrl-Z to exit VAX/VMS WordPerfect
  166. ;          products, no matter what Keyboard Layout is in effect.
  167. ;     9)   If you see a blinking "N" in the lower right-hand corner of your
  168. ;          screen, you can turn it off by pressing Ctrl-K.  On DEC terminals
  169. ;          it indicates that the keypad is in Numeric mode, but it will
  170. ;          probably not reflect the true state of the kermit keypad.
  171. ;          NOTE:  This Keyboard Layout will be saved in your WP settings file,
  172. ;          so it will be selected automatically the next time you run
  173. ;          WordPerfect 5.0, EVEN if you're running from a real DEC terminal.
  174. ;     10)  To select the correct graphics driver in WordPerfect 5.0, press
  175. ;          Shift-F1, D, G to get to the "Setup: Display: Graphics Screen Type"
  176. ;          menu.  If your PC has a graphics card, you will want to select the
  177. ;          "Sixel" graphics driver; otherwise select the "Text" driver.
  178. ;          NOTE:  This graphics driver will be saved in your WP settings file,
  179. ;          so it will be selected automatically the next time you run
  180. ;          WordPerfect 5.0, EVEN if you're running from another terminal
  181. ;          that does not have sixel graphics.
  182. ;     11)  Early versions of VAX/VMS WordPerfect 5.0 may not ask MS-Kermit for
  183. ;          the resolution of your graphics card, but instead may try to write
  184. ;          graphics to the resolution of a vt330/vt340 (800x480).  IF YOU SEE
  185. ;          GRAPHICS TRYING TO BE WRITTEN OFF THE EDGE OF YOUR SCREEN in
  186. ;          Figure-Edit or Print-Preview, you probably need to create a special
  187. ;          logical name table with your specific resolution info.  Type the
  188. ;          following commands from the DCL command line:
  189. ;          $    create/name_table wpcorp_terminal_table
  190. ;          $    define/table=wpcorp_terminal_table graphics_size 720,348
  191. ;          Replace 720,348 with the x,y resolution of your graphics card.
  192. ;               VGA = 640x480 (needs "set term graphics VGA" in mskermit.ini)
  193. ;               EGA, or VGA in EGA mode = 640x350 (see step I.3 above)
  194. ;               Hercules = 720x348
  195. ;          Whenever you want WordPerfect 5.0 to go back to its default
  196. ;          graphics resolution, you can type:
  197. ;          $    deassign/table=wpcorp_terminal_table graphics_size
  198. ;     12)  You may want the WP key mapping of the MS-Kermit keyboard to be
  199. ;          automatically invoked whenever you run any VAX/VMS WordPerfect
  200. ;          product, and automatically cleared (leaving the default vt320
  201. ;          key mapping, which maps F1-F4 to PF1-PF4, etc.) whenever you exit
  202. ;          a VAX/VMS WordPerfect product.  To do this, you must create the
  203. ;          logical name table called "wpcorp_terminal_table" if you did not
  204. ;          already create it in the previous step.  Then you must set two
  205. ;          values in that table.  Type the following commands from the DCL
  206. ;          command line:
  207. ;          $    create/name_table wpcorp_terminal_table !(if not already done)
  208. ;          $    esc=""              !(clear symbol named "esc")
  209. ;          $    esc[0,8]=27         !(assign ASCII 27 to 1st byte of "esc")
  210. ;          $    define/table=wpcorp_terminal_table begin_control "''esc'[?34h"
  211. ;          $    define/table=wpcorp_terminal_table end_control "''esc'[?34l"
  212. ;                                                              (lowercase L)
  213. ;          Whenever you want to cancel this feature, you can type:
  214. ;          $    deassign/table=wpcorp_terminal_table begin_control
  215. ;          $    deassign/table=wpcorp_terminal_table end_control
  216. ;          You can always toggle manually between the WP key mapping and the
  217. ;          vt320 default, by pressing ALT-APOSTROPHE(').
  218. ;
  219. ;----------------------------------------------------------------------------
  220. ;TO USE THIS INITIALIZATION FILE WITH A VERSION OF MS-KERMIT EARLIER THAN
  221. ;VERSION 3.0:
  222. ;     You will not be able to get WordPerfect 5.0 graphics with versions of
  223. ;     MS-Kermit earlier than 3.0, however, you can get complete text
  224. ;     functionality in the later versions.
  225. ;
  226. ;     For versions 2.31 and 2.32 you will have to change "set terminal VT320"
  227. ;     to "set terminal VT102" and you will have to comment out (insert a
  228. ;     semicolon at the beginning of the line) a number of key definitions,
  229. ;     because not as much space was available in these versions.  You may just
  230. ;     want to comment out all of the WordPerfect Quick Macro key definitions
  231. ;     at the end of this file (Alt-A through Alt-Z), since these are also
  232. ;     accessible by pressing Alt-1 followed by a through z.
  233. ;
  234. ;     For versions of MS-Kermit earlier than 2.31, you may have to comment out
  235. ;     even more key definitions, and remove certain kermit commands that did
  236. ;     not exist in the earlier versions.
  237. ;
  238. ;----------------------------------------------------------------------------
  239. ;HOW TO CUSTOMIZE THIS INITIALIZATION FILE:
  240. ;
  241. ;     If you understand how this initialization file was designed, cryptic as
  242. ;it may seem, you will better be able to customize it.  The general idea is
  243. ;to use MS-Kermit's remapable keyboard to make each PC function key (or
  244. ;combination of keys) send an escape sequence to the VAX/VMS or UNIX host,
  245. ;which will result in invoking the function that the user is used to getting
  246. ;when he presses that key (or combination of keys) in the DOS version of the
  247. ;WordPerfect product.
  248. ;     The set of escape sequences which were chosen were those which are
  249. ;normally sent from a DEC vt100 terminal.  When you run a UNIX or VAX/VMS
  250. ;WordPerfect product, using this initialization file, the host application
  251. ;actually treats incoming escape sequences as if they were coming from a vt100
  252. ;keyboard.  (VAX/VMS WordPerfect 5.0 only uses the vt100 Keypad keys as basic
  253. ;function keys if the "WPCORP_WP42_DEFAULT" Keyboard Layout is selected.)
  254. ;When the vt100 Keypad is in Application mode, each of the basic WordPerfect
  255. ;functions can be invoked by either pressing a single Keypad key, or by
  256. ;pressing PF1, PF2, or PF3 followed by one of the Keypad keys.  Other
  257. ;functions are invoked by pressing PF1, or Home, or Home,Home followed by an
  258. ;Arrow Key.  Here is a diagram that shows how each WordPerfect function is
  259. ;invoked on the vt100, and what escape sequence each of the keys sends to the
  260. ;host:
  261. ;
  262. ;                   WORDPERFECT 5.0 FUNCTIONS ON DEC VT100
  263. ;
  264. ;                 vt100 Arrow Keys
  265. ;-----------------------------------------------------
  266. ;|Beg of Doc | End of Doc |Beg of Line | End of Line | Home+Home+Key
  267. ;| Screen Up |Screen Down |Screen Left |Screen Right | Home+Key
  268. ;| Screen Up |Screen Down | Word Left  | Word Right  | PF1+Key
  269. ;| UP ARROW  | DOWN ARROW | LEFT ARROW | RIGHT ARROW | Arrow Key Alone
  270. ;|  \27[A    |   \27[B    |   \27[D    |    \27[C    | Escape Sequence
  271. ;----------------------------------------------------- sent by Key Alone
  272. ;
  273. ;                                 vt100 Application Keypad
  274. ;                         -----------------------------------------
  275. ;                         |   PF1   |   PF2   |   PF3   |PF4(HOME)|
  276. ;                         |  \27OP  |  \27OQ  |  \27OR  |  \27OS  | Esc Seq
  277. ;                         |---------|---------|---------|---------|
  278. ;                         |Thesaurus| Replace |Rev.Codes|  Block  | PF3+Key
  279. ;                         |  Shell  |  Spell  | Screen  |  Move   | PF2+Key
  280. ;                         |  Setup  |<-Search | Switch  | ->Ind<- | PF1+Key
  281. ;                         | Escape  | Search->|  Help   | Indent->| Key Alone
  282. ;                         |  \27Ow  |  \27Ox  |  \27Oy  |  \27Om  | Esc Seq
  283. ;                         |----7----|----8----|----9----|--- - ---|
  284. ;                         |Mark Text| FlushRt |Math/Cols|  Style  | PF3+Key
  285. ;                         |TxtIn/Out|Tab Align| Footnote|   Font  | PF2+Key
  286. ;                         |Date/Outl| Center  | Print   |  Format | PF1+Key
  287. ;                         |ListFiles|  Bold   |  Exit   |Underline| Key Alone
  288. ;                         |  \27Ot  |  \27Ou  |  \27Ov  |  \27Ol  | Esc Seq
  289. ;                         |----4----|----5----|----6----|----,----|
  290. ;                         | Graphics|  Macro  |  Goto   |Typvr/Ins| PF3+Key
  291. ;                         |MergeSort|Macro Def|Hard Page|Macro Cmd| PF2+Key
  292. ;                         |MergeCode|Retrieve | Page Up |  Hyphen | PF1+Key
  293. ;                         | Merge R |  Save   |Page Down|SoftHyphn| Key Alone
  294. ;                         |  \27Oq  |  \27Or  |  \27Os  |  \27OM  | Esc Seq
  295. ;                         |----1---------2----|----3----|         |
  296. ;                         |                   | DelPage |         | PF3+Key
  297. ;                         |                   | DelLine |         | PF2+Key
  298. ;                         |                   | DelWord |         | PF1+Key
  299. ;                         |       Cancel      | Delete  |         | Key Alone
  300. ;                         |       \27Op       | \27On   |         | Esc Seq
  301. ;                         -----------0-------------.-------Enter---
  302. ;
  303. ;
  304. ;To CUSTOMIZE a key definition, you must go through exactly the same process
  305. ;as was already done for each key definition in this file:
  306. ;
  307. ;     1)   From the MS-Kermit prompt, type "show key" <RETURN>.
  308. ;     2)   Press the PC key or combination of keys to be remapped.
  309. ;     3)   Note the decimal number (\????) which is shown after the words
  310. ;          "Scan Code."  This is the number by which kermit knows that key or
  311. ;          combination of keys.
  312. ;     4)   Locate the WordPerfect function in the diagram above, which you
  313. ;          would like the key to perform.  You may have to find the
  314. ;          WordPerfect 5.0 equivalent to a key in another WordPerfect product.
  315. ;          For instance, "Font" is the WP 5.0 equivalent of "Print Format" in
  316. ;          WP 4.2, and "Merge R" is the WP 5.0 equivalent of "Send" in WP
  317. ;          Mail, because the equivalent functions are invoked by the same PC
  318. ;          Function key in their respective DOS products.
  319. ;     5)   Determine the escape sequence(s) that would be sent by a vt100 to
  320. ;          invoke that WP function.  If the key is preceded by PF1, PF2, PF3,
  321. ;          or Home(PF4), then put the two escape sequences together.
  322. ;     6)   From the MS-Kermit prompt, type the command "set key \xxxx yyyy",
  323. ;          where xxxx is the decimal number by which kermit knows the PC key,
  324. ;          and yyyy is a string of \27(Escape)'s and letters taken from the
  325. ;          diagram above.  The second parameter may also be a predefined MS-
  326. ;          Kermit verb, such as \Kupscn, which performs a local kermit
  327. ;          function, such as scrolling the screen up, or \Kexit, which exits
  328. ;          from an MS-Kermit connection.
  329. ;     7)   Connect to your host and test the key in your WP application.
  330. ;     8)   If it works, then insert the same "set key ... ..." command into
  331. ;          your own copy of this initialization file.  You will want to
  332. ;          locate comment out (put a semicolon before) any other definitions
  333. ;          in the file that attempt to map the same key.
  334. ;
  335. ;EXAMPLE:  Assume we want to change the PC key F11 to invoke the WP function
  336. ;"Center," instead of "Reveal Codes":
  337. ;
  338. ;     1)   We type "show key" from the MS-Kermit prompt.
  339. ;     2)   We press the F11 key on our PC keyboard.
  340. ;     3)   We note the Scan Code number by which kermit will know the F11 key,
  341. ;          which is \389.
  342. ;     4)   We locate the "Center" function on the diagram above.  We see that
  343. ;          "Center" is invoked on a vt100 by pressing PF1 followed by 5 on the
  344. ;          Application Keypad.
  345. ;     5)   We look at the escape sequences in the diagram, that correspond to
  346. ;          the PF1 key (\27OP) and the KP5 (\27Ou).  We combine the two escape
  347. ;          sequences to get \27OP\27Ou.
  348. ;     6)   We type "set key \389 \27OP\27Ou" from the MS-Kermit prompt to
  349. ;          remap the key.
  350. ;     7)   We connect to our host and start WordPerfect.  We press the F11 key
  351. ;          and see if it performs the "Center" function instead of the "Reveal
  352. ;          Codes" function.
  353. ;     8)   If it worked, then we insert the "set key \389 \27OP\27Ou" command
  354. ;          into our copy of the initialization file, beneath the line which
  355. ;          already read "set key \389 \27OR\27Oy".  Then we insert a ";" at
  356. ;          the first of the old line, to comment it out.
  357. ;
  358. ;----------------------------------------------------------------------------
  359.  
  360. ;****************************************************************************
  361. ;***************** WORDPERFECT KEY MAPPING BEGINS HERE **********************
  362. ;****************************************************************************
  363.  
  364. set key CLEAR           ;clear all key definitions
  365. set terminal VT320
  366. set terminal wrap OFF
  367.  
  368. ;Remap some Predefined Kermit Keys which would be overridden by WP functions
  369. set key \2356 \Kexit ;ALT-PERIOD now Exits Kermit connection (was ALT-X)
  370. set key \2343 \Kdump ;ALT-SEMICOLON now Dumps Kermit Screen (was CTRL-END)
  371. set key \2305 \27    ;ALT-ESC now sends true escape (Ascii 27) (was ESC)
  372. set key \2332 \10    ;ALT-RETURN now sends LineFeed (Ascii 10) (was Ctrl-J)
  373.  
  374. ;ALT-APOSTROPHE(') TOGGLES BETWEEN WP KEY MAPPING & VT320 DEFAULT:
  375. set key \2344 \KterminalR
  376. ;The macro terminalR is invoked
  377. ;     a) when ESC[?34l (lowercase L) is received from the host,
  378. ;     b) when ALT-APOSTROPHE is pressed while WP key definitions are active
  379. ;You may want to "take" another file instead of "set key clear" in terminalR
  380. define terminalR set key clear,-
  381.   set key \2344 \KterminalS,-
  382.   echo WP Key Definitions Cleared -- vt320 Default Mapping Now in Force,-
  383.   pause 2,-
  384.   connect
  385. ;The macro terminalS is invoked
  386. ;     a) whenever ESC[?34h is received from the host
  387. ;     b) when ALT-APOSTROPHE is pressed after having previously cleared
  388. ;        WP key definitions with the terminalR macro
  389. define terminalS take wp30.ini, connect
  390. ;Esc - WordPerfect Escape
  391. set key \27 \27Ow
  392.  
  393. ;F1 - Cancel
  394. set key \315 \27Op
  395. ;F2 - Search ->
  396. set key \316 \27Ox
  397. ;F3 - Help
  398. set key \317 \27Oy
  399. ;F4 - Indent ->
  400. set key \318 \27Om
  401. ;F5 - List Files
  402. set key \319 \27Ot
  403. ;F6 - Bold
  404. set key \320 \27Ou
  405. ;F7 - Exit
  406. set key \321 \27Ov
  407. ;F8 - Underline
  408. set key \322 \27Ol
  409. ;F9 - Merge R
  410. set key \323 \27Oq
  411. ;F10 - Save
  412. set key \324 \27Or
  413.  
  414. ;F11 - Reveal Codes
  415. set key \389 \27OR\27Oy
  416. ;F12 - Block
  417. set key \390 \27OR\27Om
  418.  
  419. ;Shift F1 - Super/Subscript
  420. set key \852 \27OP\27Ow
  421. ;Shift F2 - Search <-
  422. set key \853 \27OP\27Ox
  423. ;Shift F3 - Switch
  424. set key \854 \27OP\27Oy
  425. ;Shift F4 - -> Indent <-
  426. set key \855 \27OP\27Om
  427. ;Shift F5 - Date
  428. set key \856 \27OP\27Ot
  429. ;Shift F6 - Center
  430. set key \857 \27OP\27Ou
  431. ;Shift F7 - Print
  432. set key \858 \27OP\27Ov
  433. ;Shift F8 - Line
  434. set key \859 \27OP\27Ol
  435. ;Shift F9 - Merge E
  436. set key \860 \27OP\27Oq
  437. ;Shift F10 - Retrieve
  438. set key \861 \27OP\27Or
  439.  
  440. ;Ctrl F1 - Shell
  441. set key \1374 \27OQ\27Ow
  442. ;Ctrl F2 - Spell
  443. set key \1375 \27OQ\27Ox
  444. ;Ctrl F3 - Screen
  445. set key \1376 \27OQ\27Oy
  446. ;Ctrl F4 - Move
  447. set key \1377 \27OQ\27Om
  448. ;Ctrl F5 - Text In/Out
  449. set key \1378 \27OQ\27Ot
  450. ;Ctrl F6 - Tab Align
  451. set key \1379 \27OQ\27Ou
  452. ;Ctrl F7 - Footnote
  453. set key \1380 \27OQ\27Ov
  454. ;Ctrl F8 - Print
  455. set key \1381 \27OQ\27Ol
  456. ;Ctrl F9 - Merge/Sort
  457. set key \1382 \27OQ\27Oq
  458. ;Ctrl F10 - Macro Def
  459. set key \1383 \27OQ\27Or
  460.  
  461. ;Alt F1 - Thesaurus
  462. set key \2408 \27OR\27Ow
  463. ;Alt F2 - Replace
  464. set key \2409 \27OR\27Ox
  465. ;Alt F3 - Reveal Codes
  466. set key \2410 \27OR\27Oy
  467. ;Alt F4 - Block
  468. set key \2411 \27OR\27Om
  469. ;Alt F5 - Mark Text
  470. set key \2412 \27OR\27Ot
  471. ;Alt F6 - Flush Right
  472. set key \2413 \27OR\27Ou
  473. ;Alt F7 - Math/Columns
  474. set key \2414 \27OR\27Ov
  475. ;Alt F8 - Page
  476. set key \2415 \27OR\27Ol
  477. ;Alt F9 - Merge Codes
  478. set key \2416 \27OR\27Oq
  479. ;Alt F10 - Macro
  480. set key \2417 \27OR\27Or
  481.  
  482. ;Middle Keypad Insert
  483. set key \4434 \27OR\27OM
  484. ;Right Keypad Ins
  485. set key \338 \27OR\27OM
  486.  
  487. ;Middle Keypad HOME
  488. set key \4423 \27OS
  489. ;Right Keypad HOME
  490. set key \327 \27OS
  491.  
  492. ;Middle Keypad Pg Up
  493. set key \4425 \27OP\27Os
  494. ;Right Keypad Pg Up
  495. set key \329 \27OP\27Os
  496.  
  497. ;Middle Keypad Delete
  498. set key \4435 \27On
  499. ;Right Keypad Del
  500. set key \339 \27On
  501.  
  502. ;Middle Keypad End
  503. set key \4431 \27OS\27OS\27[C   ;Actually Functions as Home,Home,Right
  504. ;set key \4431 \27End           ;This may be necessary to provide
  505.                                 ; true End function in PlanPerfect
  506. ;Right Keypad End
  507. set key \335 \27OS\27OS\27[C    ;Actually Functions as Home,Home,Right
  508. ;set key \335 \27End            ;This may be necessary to provide
  509.                                 ; true End function in PlanPerfect
  510. ;Middle Keypad Pg Dn
  511. set key \4433 \27Os
  512. ;Right Keypad Pg Dn
  513. set key \337 \27Os
  514.  
  515. ;Middle Keypad Up arrow
  516. set key \4424 \Kuparr
  517. ;Right Keypad Up arrow
  518. set key \328 \Kuparr
  519.  
  520. ;Middle Keypad Left arrow
  521. set key \4427 \Klfarr
  522. ;Right Keypad Left arrow
  523. set key \331 \Klfarr
  524.  
  525. ;Middle Keypad Right arrow
  526. set key \4429 \Krtarr
  527. ;Right Keypad Right arrow
  528. set key \333 \Krtarr
  529.  
  530. ;Middle Keypad DownArrow
  531. set key \4432 \Kdnarr
  532. ;Right Keypad Down arrow
  533. set key \336 \Kdnarr
  534.  
  535. ;Ctrl BackSpace - Delete Word
  536. set key \127 \27OP\27On
  537.  
  538. ;Shift Tab - Margin Release
  539. set key \783 \27OP\27Oz     ;this only works for UNIX WP products
  540. ;set key \783 \27OP\9       ;this only works for VAX/VMS WP products
  541.  
  542. ;Ctrl ENTER - Hard Page
  543. set key \10 \27OQ\27Os
  544.  
  545. ;Keypad - ; Screen Up
  546. set key \330 \27OP\27[A
  547. ;Ctrl Middle Keypad UpArrow - Screen Up
  548. set key \5517 \27OP\27[A
  549. ;Ctrl Right Keypad UpArrow - Screen Up
  550. set key \1421 \27OP\27[A
  551.  
  552. ;Keypad + ; Screen Down
  553. set key \334 \27OP\27[B
  554. ;Ctrl Middle Keypad DownArrow - Screen Down
  555. set key \5521 \27OP\27[B
  556. ;Ctrl Right Keypad DownArrow - Screen Down
  557. set key \1425 \27OP\27[B
  558.  
  559. ;Ctrl Middle Keypad LeftArrow - Word left
  560. set key \5491 \27OP\27[D
  561. ;Ctrl Right Keypad LeftArrow -Word Left
  562. set key \1395 \27OP\27[D
  563.  
  564. ;Ctrl Middle Keypad RightArrow - Word Right
  565. set key \5492 \27OP\27[C
  566. ;Ctrl Right Keypad RightArrow - Word Right
  567. set key \1396 \27OP\27[C
  568.  
  569. ;Ctrl Middle Keypad End - Delete EOL
  570. set key \5493 \27OQ\27On
  571. ;Ctrl Right Keypad End - Delete EOL
  572. set key \1397 \27OQ\27On
  573.  
  574. ;Ctrl Middle Keypad PgDn - Delete EOP
  575. set key \5494 \27OR\27On
  576. ;Ctrl Right Keypad PgDn - Delete EOP
  577. set key \1398 \27OR\27On
  578.  
  579. ;Ctrl Middle Keypad PgUp - Macro Pause
  580. set key \5508 \27OR\27Oz
  581. ;Ctrl Right Keypad PgUp - Macro Pause
  582. set key \1412 \27OR\27Oz
  583.  
  584. ;Ctrl Middle Keypad Home - Go To
  585. set key \5495 \27OR\27Os
  586. ;Ctrl Right Keypad HOME - Go To
  587. set key \1399 \27OR\27Os
  588.  
  589. ;Alt 1 - Quick Macro
  590. set key \2424 \27OP
  591.  
  592. ;Alt 2 - Keymap 1
  593. set key \2425 \27OY     ;this only works for UNIX WP products
  594. ;Alt 2 - PF2 Key mapping
  595. ;set key \2425 \27OQ    ;this only works for VAX/VMS WP products
  596.  
  597. ;Alt 3 - Keymap 2
  598. set key \2426 \27OZ     ;this only works for UNIX WP products
  599. ;Alt 3 - PF3 Key mapping
  600. ;set key \2426 \27OR    ;this only works for VAX/VMS WP products
  601.  
  602. ;Alt A - QuickMacro A
  603. set key \2334 \27OPa
  604. ;Alt B - QuickMacro B
  605. set key \2352 \27OPb
  606. ;Alt C - QuickMacro C
  607. set key \2350 \27OPc
  608. ;Alt D - QuickMacro D
  609. set key \2336 \27OPd
  610. ;Alt E - QuickMacro E
  611. set key \2322 \27OPe
  612. ;Alt F - QuickMacro F
  613. set key \2337 \27OPf
  614. ;Alt G - QuickMacro G
  615. set key \2338 \27OPg
  616. ;Alt H - QuickMacro H
  617. set key \2339 \27OPh
  618. ;Alt I - QuickMacro I
  619. set key \2327 \27OPi
  620. ;Alt J - QuickMacro J
  621. set key \2340 \27OPj
  622. ;Alt K - QuickMacro K
  623. set key \2341 \27OPk
  624. ;Alt L - QuickMacro L
  625. set key \2342 \27OPl
  626. ;Alt M - QuickMacro M
  627. set key \2354 \27OPm
  628. ;Alt N - QuickMacro N
  629. set key \2353 \27OPn
  630. ;Alt O - QuickMacro O
  631. set key \2328 \27OPo
  632. ;Alt P - QuickMacro P
  633. set key \2329 \27OPp
  634. ;Alt Q - QuickMacro Q
  635. set key \2320 \27OPq
  636. ;Alt R - QuickMacro R
  637. set key \2323 \27OPr
  638. ;Alt S - QuickMacro S
  639. set key \2335 \27OPs
  640. ;Alt T - QuickMacro T
  641. set key \2324 \27OPt
  642. ;Alt U - QuickMacro U
  643. set key \2326 \27OPu
  644. ;Alt V - QuickMacro V
  645. set key \2351 \27OPv
  646. ;Alt W - QuickMacro W
  647. set key \2321 \27OPw
  648. ;Alt X - QuickMacro X
  649. set key \2349 \27OPx
  650. ;Alt Y - QuickMacro Y
  651. set key \2325 \27OPy
  652. ;Alt Z - QuickMacro Z
  653. set key \2348 \27OPz
  654.