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

  1. $! Procedure name :     PCWP.COM (version 2.0)
  2. $! Date :        1APR90 (original)
  3. $!            18JUL93 (update for MS-Kermit 3.13)
  4. $!
  5. $! Changes:    - Added support for the APC-MACRO
  6. $!        - Removed TerminalR & TerminalS code (obsolete for usage
  7. $!          in the 'old' manner, use the above. More Flexible!!)
  8. $!        - Fixed minor Bug - Prompt NOW reappears upon
  9. $!          leaving WordPerfect.
  10. $!        - Added /nolog switch (a while back) to inhibit the
  11. $!          annoying informational messages from VMS.
  12. $!        - Now sets Graphics_size to VGA dimensions if not
  13. $!          specified. See VGA NOTE below for info.
  14. $!
  15. $! Author :        Bob Martin
  16. $! Address :        513 Ellis Ct.
  17. $!            Richmond, KY 40475
  18. $! Bitnet:        GRAPHICS@EKU  or   ACSMARTIN@EKU
  19. $! Internet:        Graphics@acs.eku.edu or acsmartin@acs.eku.edu
  20. $!
  21. $!#######################################################################
  22. $!
  23. $! This file is intended to provide a means for people to use
  24. $! WordPerfect 5.x on a VAX(VMS), just as if they were using it on their
  25. $! IBM PC. When used with the file 'WP30.INI' provided by WordPerfect
  26. $! Corp. (I believe the file is called MSIWP3.INI at Columbia); you
  27. $! will need to make minor corrections to the original INI file if
  28. $! you are using VMS, since it was written for UNIX. As a matter of
  29. $! fact, the MSIWP3.INI file is very well commented and tells you the
  30. $! same thing.
  31. $!
  32. $! You can either use this command procedure locally (in your account)
  33. $! or it can be made available to the entire system. I have made it
  34. $! available to the entire system by putting it in a directory called
  35. $! PUBLIC: -- then adding the line '$ PCWP :== @PUBLIC:PCWP.COM' to
  36. $! SYLOGIN.COM.
  37. $!
  38. $! You may want to add 'SET KEY CLEAR' at the top of your MSKERMIT.INI
  39. $! file to ensure you get ALL your VMS key definitions back.
  40. $!
  41. $! In the previous incarnation of this procedure, you had to define
  42. $! TerminalS & TerminalR in your MSKERMIT.INI & WP30.INI files,
  43. $! respectively. This method can no longer be used with MS-Kermit 3.13
  44. $! since TerminalR & S are now used to support Hebrew (see MSKERM.UPD
  45. $! for further details).
  46. $!
  47. $! VGA NOTE:
  48. $!    The OLD usage of this procedure was 'PCWP VGA File.name' which
  49. $!    still works! The program now assumes VGA if P1 isn't CGA, EGA,
  50. $!    or VGA -- then uses P1 as the filename (wp file.name) and sets
  51. $!    the Graphics_size to VGA dimensions (used with View Document).
  52. $!    The worst this can cause is the document NOT fitting on the
  53. $!    screen when viewing the document!
  54. $!
  55. $!    New Usage: PCWP file.name
  56. $!
  57. $! Hope it helps some of you folks out, a bit!
  58. $!#######################################################################
  59. $!
  60. $!Set up the terminal...........
  61. $!
  62. $ set term/inq/noeight/hostsync/ttsync
  63. $ create/name_table/nolog wpcorp_terminal_table
  64. $ esc=""
  65. $ esc[0,8]=27
  66. $!
  67. $! Uses APC-MACRO in order to provide hands-off key redefinition
  68. $! for WordPerfect products
  69. $!
  70. $ define/nolog/table=wpcorp_terminal_table begin_control -
  71.     "''esc'_ Take wp30.ini ''esc'\"
  72. $!
  73. $! Uses APC-MACRO -- which will reset your key definitions to
  74. $! whatever you had them before, automatically.
  75. $!
  76. $ define/nolog/table=wpcorp_terminal_table end_control -
  77.     "''esc'_ Take mskermit.ini ''esc'\ "
  78. $!
  79. $! This stuff will ASSUME VGA adapter if P1 is left out or misspelled
  80. $! and use the 2nd parameter as the filename (P2).
  81. $! It ain't pretty but it does work.... 8-)
  82. $!
  83. $ If ("''P1'" .eqs. "cga") .or. ("''P1'" .eqs. "CGA") then goto cga
  84. $ If ("''P1'" .eqs. "ega") .or. ("''P1'" .eqs. "EGA") then goto ega
  85. $ If ("''P1'" .eqs. "vga") .or. ("''P1'" .eqs. "VGA") then goto vga
  86. $!
  87. $! Assume P1 is misspelled and set up for VGA using P2 as filename.
  88. $! This allows compatibility with version 1.0
  89. $!
  90. $ if P2 .nes. "" then goto vga
  91. $!
  92. $! Allows the usage 'PCWP file.name' and assumes VGA.
  93. $!
  94. $ if P1 .nes. "" then P2 = P1
  95. $ goto vga
  96. $!
  97. $ CGA:
  98. $ define/nolog/table=wpcorp_terminal_table graphics_size 320,200
  99. $ define/user_mode sys$input sys$command
  100. $ wp51 'P2'
  101. $ goto outtahere
  102. $!
  103. $ EGA:
  104. $ define/nolog/table=wpcorp_terminal_table graphics_size 640,350
  105. $ define/user_mode sys$input sys$command
  106. $ wp51 'P2'
  107. $ goto outtahere
  108. $!
  109. $ VGA:
  110. $ define/nolog/table=wpcorp_terminal_table graphics_size 640,480
  111. $ define/user_mode sys$input sys$command
  112. $ wp51 'P2'
  113. $ goto outtahere
  114. $!
  115. $ outtahere:
  116. $ Exit
  117.