home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / c128 / wordstar.inf < prev    next >
Text File  |  1994-07-13  |  10KB  |  178 lines

  1. *********************************************************************
  2. This article is being presented through the *StarBoard* Journal of
  3. the FlagShip/StarShip SIGs (Special Interest Groups) on the Delphi
  4. and GEnie telecommunications networks.  Permission is hereby granted
  5. to non-profit organizations only to reprint this article or pass it
  6. along electronically as long as proper credit is given to both the
  7. author and the *StarBoard* Journal.
  8. *********************************************************************
  9.  
  10.                       COLOR YOUR WOR(L)DSTAR!!
  11.  
  12.                         Patching Information
  13.                          For WORDSTAR 3.30
  14.                         On the Commodore 128
  15.  
  16.                         by KEVIN-S. on GEnie
  17.  
  18.      This article provides information on patching procedures and
  19. locations which may be useful in customizing your Commodore
  20. installation of Wordstar.  It assumes you are familiar with the basic
  21. techniques involved in copying your master disk and running the
  22. WINSTALL program.  If you are using version 2.2x of Wordstar, your
  23. installation and patching commands may be slightly different.  The
  24. address labels will be the same except where noted, however, and the
  25. general procedure is the same.  Please see your manual for more
  26. information.  If you need more basic information in terminal setup,
  27. etc., there are many texts within the CP/M section of most public
  28. databases (including GEnie) with more extensive instructions on
  29. Wordstar patching.
  30.  
  31.      It is highly recommended that you obtain copies of the C1571.COM
  32. and CONF.COM programs.  These public domain programs were written by
  33. Von Ertwine, and are very handy for C-128 CP/M use in general.
  34. C1571.COM speeds up disk writing operations by a factor of two.
  35. CONF.COM allows the alteration of many console parameters, such as
  36. colors, cursor shape and flash rate, keyboard repeat and feel, and
  37. more.  I use both these commands in a PROFILE.SUB file to initialize my
  38. terminal setup whenever I boot CP/M.  I will refer to some of the CONF
  39. parameters in the section on system speedup.
  40.  
  41.      There are three basic modifications I want to discuss: setting up
  42. your basic Wordstar colors, changing your highlighting effect, and
  43. speeding up your Wordstar system.  These are more or less independent
  44. of each other.  Please feel free to experiment with a BACKUP copy of
  45. your Wordstar; much information can be gleaned by poking around in this
  46. program.
  47.  
  48.      To make any of the alterations discussed in this document, you
  49. first must have entered the patching area of your Wordstar installation
  50. program, WINSTALL.  To do this, simply enter a '+' sign at the main
  51. menu prompt, where you are given the choice of installing terminals,
  52. printers, special features, or exiting WINSTALL.  The '+' sign will not
  53. be on the menu.  (2.xx users answer 'N' to the question "Are the
  54. modifications to Wordstar now complete?")
  55.  
  56.                      Good luck, and have fun!
  57.                                KeS
  58.  
  59. ****SYSTEM SETUP
  60.  
  61.      The Wordstar patch addresses of interest here are :TRMINI and
  62. :TRMUNI.  Each gives you space for 8 characters of data that can be sent
  63. to your terminal before (:TRMINI) or after (:TRMUNI) entering or
  64. leaving Wordstar.  I use :TRMINI to change my screen colors when
  65. starting a Wordstar session.  With reference to page 223 of the
  66. Commodore 128 System Guide, screen colors can be changed by sending ESC
  67. ESC ESC xx, where xx is a hex number between 20h and 2Fh for character
  68. color, and 30 and 3Fh for background color.  Gruesome, right?  Well, it
  69. is not really that bad.  Let's walk through this one step by step.  Say
  70. we want to change our screen colors to light blue on black when
  71. entering Wordstar.  After entering the patching area of WINSTALL as
  72. directed above, you will be prompted to enter the location you wish to
  73. modify.  There will be instructions on the syntax, but using WINSTALL
  74. on Wordstar 3.30, you simply type :TRMINI (CR).  The program will list
  75. a string of two digit codes and ask "Is this the address you require?".
  76. Resist the temptation to type "How the hell do I know?", and enter "Y".
  77. You will then see a brief description of how to enter code values, and
  78. then you will see the present value of the code in the first location of
  79. :TRMINI.  Whenever you enter a patch of more than one location in
  80. length, the value in the first location must consist of the total
  81. number of code values you will be changing.  In this case, we are going
  82. to be entering eight values, three escape codes plus a number for each
  83. color.  Therefore you enter a ,8 into the first location.  Note that
  84. the , indicates the use of a hex value, and that we do not count the
  85. "counter" as a code location.  Even though we are actually modifying
  86. nine locations, the "counter" should be set at eight.  Now, how to enter
  87. the ESC codes?  ESC simply means ASCII value 27, which is 1B in hex.
  88. Enter either #27 or ,1B in the next three locations.  Now for the color
  89. code.  First the character color.  Color codes are listed on page 98 of
  90. the System Guide, running from 1 to 16.  Since we want a number from 32
  91. (20h) to 45 (2Rh), add 31 to the desired color from page 98.  For light
  92. blue this will be 15+31=46 (2Eh).  Enter #46 or ,2E in the next
  93. location.  Now put in three more ESC codes, and we are ready to compute
  94. the value for a black background.  Background values run from 48 (30h)
  95. to 63 (3Fh), thus a black background will be 1+47=48 (30h).  Enter this
  96. in the last location.  Now type a period in the next location to exit
  97. from this address.  Hit a carriage return to remain in patching mode; we
  98. aren't done yet!
  99.  
  100.      Now you should be familiar with the basic techniques of patching a
  101. location, so we can move along a bit faster with the other changes.
  102.  
  103. ****  SYSTEM SPEEDUP
  104.  
  105.      As we all know, the C-128 implementation of CP/M is quite slow
  106. when compared to the standard 4-mhz Kaypro and Osborne systems.  This
  107. can be offset to a degree by modifying certain timing addresses within
  108. Wordstar.  First, however, you should be sure to issue the CONF.COM
  109. command "40col=off".  This will increase your effective clock speed by
  110. about 15-20%.  Also, the baud rate set will present a tradeoff between
  111. screen update speed and keyboard scanning rate.  This can be a sizeable
  112. difference; on a test file startup time ranged from 14.5 seconds to 34
  113. seconds depending on whether I set the baud rate at 300 or 1200.  I
  114. generally find the default settings to be a good compromise, but if you
  115. find yourself dropping characters as you type, lower the 'feel'
  116. parameter or raise the baud rate, or both.  Conversely, if you have
  117. been using a modem at 1200 baud, W* editing will be very slow unless
  118. you lower the baud rate.
  119.  
  120.      The timing addresses which concern us are :DELCUS, :DELMIS, :DEL3,
  121. :DEL4, and :DEL5.  (NOTE to Wordstar 2.xx users: You may not have
  122. :DEL5.  Sorry 'bout that!)  :DELCUS and :DELMIS control the delay
  123. following cursor positioning and other such things, while the DELx
  124. values control pauses before bringing up menus and such things.  All of
  125. these can profitably be patched down to 0, with the exception of :DEL3.
  126. This delay controls how long after entering a control command Wordstar
  127. will wait before bringing up the help menu for that command.  If you
  128. patch it to zero, you will force the menus to be redrawn every time you
  129. execute a two-character command, taking quite a bit of time.  I find 6
  130. to be a good choice.  These changes will speed up your Wordstar LOTS,
  131. maybe as much as 40% on top of the gain from turning off the 40-column
  132. screen!  Of course, these gains don't affect your disk I/O, so make
  133. sure you run C1571.COM as well.
  134.  
  135. ****  COLOR HIGHLIGHTING
  136.  
  137.      I'm sort of proud of this one: I got the idea after using a BASIC
  138. utility which sets Wordstar colors on the MS-DOS version of Wordstar.
  139. Originally, Wordstar was used on good old CP/M systems which were
  140. fortunate to have any provision for distinguishing text types, much
  141. less offering living color!  Still, the patch locations for the
  142. highlighting sequence are listed, so we may feel free to go in and
  143. make whatever changes we think might work.  :IVON and :IVOFF are the
  144. locations we want.  These are "string" locations just as the :TRMINI
  145. address was, meaning that the first location will contain the length of
  146. the command sequence.  What we are going to do is to put a 4 in the
  147. first value of :IVON, then ESC ESC ESC xx, where xx is in the range 32-
  148. 47 (20h-2Fh).  Note that this is the exact same procedure as we used to
  149. set the character color in :TRMINI.  Pick a color that contrasts well
  150. with your background and text colors:  I am currently using light
  151. yellow as my highlighting color.  The menus will also be in this color,
  152. so you should not pick one so bright as to be distracting.  At the same
  153. time, you must patch the same string into :IVOFF, MAKING SURE to use
  154. the same color code you used in :TRMINI! This will return you to your
  155. normal text color when highlighting is switched off.  If you use a
  156. different color code in :IVOFF than in :TRMINI, you will get some very
  157. strange effects!  Whenever you change one of these patches, you should
  158. be sure to change the other.  You could also change to some other
  159. highlighting technique instead of color changing, such as inverse
  160. video, underlining, or blinking text.  The escape sequences for these
  161. attributes are listed in the System Guide, page 224, and their
  162. implementation is essentially similar to our color highlighting.  Even
  163. various combinations of these attributes could be used, but this
  164. procedure is a bit more complex, as the patching area at :IVON / :IVOFF
  165. is limited to 6 characters, and you would have to insert JMP
  166. instructions to refer Wordstar to a more extensive patching area if you
  167. need more space.  Maybe next month!
  168.  
  169.      Wordstar is perhaps not the state of the art in word processors,
  170. but it is very versatile, and the direct access to the source code is
  171. unparalleled among Commodore word processors.  I hope you will take
  172. advantage of these techniques, and come up with others of your own to
  173. share with me!
  174.                                       Enjoy!
  175.  
  176.                                         KeS
  177.  
  178.