

                    Undocumented features in 6.0D


Reducing Memory Usage
MEMFLG=

Adding one to the memory-usage flag by turning bit 0 on (see 
PATCH.LST), causes WordStar to read help messages (WSMSGS.OVR) from 
disk rather than from RAM.  Those with disk caches won't notice a 
performance degradation.  This setting will save approximately 27k 
RAM.  MEMFLG also controls whether the speller will give definitions.  
If you've enabled definitions during spell-check, set MEMFLG to 01.  
If you have not enabled definitions during spell-check (this is the 
default), MEMFLG should be 03.

Additional Decimal-Alignment Characters
RUNMSG+1=<up to 3 characters>

Patching the three "reserved" bytes following RUNMSG allows the user 
to use alternate characters for aligning text at decimal tabs.  
Normally, WordStar quits aligning text to the left of a decimal tab at 
the first space or period.  If a user wishes to stop aligning at a 
parenthesis or equals sign, he can add these characters at RUNMSG+1, 
for example:

                            RUNMSG+1=')='
or
                            RUNMSG+1=29,3D

One advantage to patching RUNMSG+1 is to align several lines of text 
at a particular character, for example:

                            Ctrl => Caps Lock
                       Caps Lock => Alt
                             Alt => Ctrl

in which all text is centered on the equals sign.  To prevent WordStar 
from aligning on the first space in each line, use ^PO (binding space) 
for each space.


Change Screen Overlap
SCNOVR=<number of lines, or FF for "old" method>

Many WordStar users have difficulty following the flow of text when 
paging up or down through their file, particularly in small windows, 
because of WordStar's default method of screen overlap, which leaves 
approximately 1/8 of the previous screen at the top of the next screen 
when paging.  Patching SCNOVR to a value other than FF (-1) allows the 
user to define a specific number of lines for WordStar to always 
overlap.  A setting of zero will show no lines from previous screens 
on subsequent screens (which is the method that ProFinder uses).  The 
user may specify other values as well.


Change Location of Temporary Files
SCNOVR+1=<drive number>
SCNOVR+2=<path number>

Normally, WordStar stores temporary files ($A$, $B$, $G$, etc.) in the 
same drive and directory as the document being edited.  Users with 
large RAM disks or one hard disk that is faster than another may wish 
to store temporary files there, increasing scrolling speed as much as 
30-40 percent.  SCNOVR+1 may be patched with the number of the drive 
that will contain the temps, such as 4 for drive D:.  SCNOVR+2 would 
contain the path number corresponding to DEFPTH in WSCHANGE (C, D, A).  
For a root directory, the path may need to be blank, rather than 
appear as a single backslash.

CHANGING THIS SETTING SHOULD BE AVOIDED AT ALL POSSIBLE COSTS.  It may 
lead to a LOSS OF DATA if the user runs out of disk space for the 
temps on the alternate drive.  The $B$ temp is not moved to the 
alternate drive, because this file is renamed to the original file 
name when saving.  Rather than suggest that users change this setting, 
this knowledge should equip technicians for an additional diagnostic 
when users experience the error, "File error.  Disk might be full or 
CONFIG.SYS lacks the statement FILES=30."  Insufficient disk space on 
the temp drive or an incorrect drive or path will generate this error 
message.


Increased Speed for Proportional Text
BFRSIZ=<number of 512-byte buffers>

From PATCH.LST:
     WordStar uses a pool of buffers for pdf data, proportional 
     spacing tables, paragraph style data, and font descriptions.  
     Set bfrsiz to at least 20 buffers; more will improve performance 
     with large PDFs, many fonts, or many paragraph styles.

Increasing BFRSIZ increases WordStar's memory usage significantly, but 
it also dramatically improves performance when editing complex 
documents (many styles and/or proportional fonts).  The default 
setting of 20 decimal is 14 hexadecimal.  A suggested value is 28 hex, 
which is 40 buffers, or 20k, an increase of 10k over the default.  
Problems may arise with larger values; do not attempt values larger 
than 40 hex, which is 64 buffers decimal (32k).


Function Keys 11 and 12
EXTKB=<on/off/test>
FUNTBL=<function key settings>
MORPAT=<more function key settings>
FUNLAB=<function key labels>

See the technote on patching function keys in WS 6.0D, which discusses 
this topic extensively.


Preserve Number in Find and Replace
CTLFLG=<non-zero>

In WordStar versions prior to 4.0, a number entered under Options 
would be used by subsequent presses of Ctrl-L.  Changing CTLFLG to any 
non-zero value (such as FF) will make version 6.0 also remember the 
number.


Adjust Top Margin in Preview for Non-Lasers
PRVLED=<non-zero>

From PATCH.LST:
     For dot matrix printers, page preview may show pages of a 
     document one line down from where they will actually appear 
     when printed.  If you don't want this extra line added when 
     previewing, set prvled non-zero.

On page printers (lasers), the "top" margin is measured to the top of 
the largest font in the first line of text, but for dot matrix 
printers, it is the baseline of the first line.  Preview in versions 
since 5.5C uses the top of the largest font as the measuring point; 
setting this value to non-zero makes it use the baseline, so that the 
text appears one line higher in APP.


User Speller Memory
UDCMEM=<user dictionaries>
UDCMEM+1=<global replacments memory>

In 6.0D, users must set the amount of memory for the personal 
dictionaries to a value at least as large as the compressed (.DCC) 
dictionaries.  When using WSCHANGE to increase this value, the memory 
used for global spelling replacements increases by the same amount.  
By patching UDCMEM and UDCMEM+1 individually, the user may increase 
the RAM for one without affecting the other.  The default for each is 
2k.  If the largest .DCC file is 8k, then set UDCMEM to at least 9k, 
but only increase UDCMEM+1 if the "g"lobal option is used often while 
spell-checking, or out of memory conditions arise.


Speller and Hyphenator Memory Usage
SPMMEM=<normally -1>
HYMEM=<true/false or FF/00>

Version 6.0D normally uses all available memory for spell-checking (if 
SPMMEM is set to the default -1 or FFFF hex or 65535k decimal).  This 
should not be changed.  

If hyphenator memory is enabled (WSCHANGE CCB=ON), this "robs" 60k 
from the speller, even if hyphenation is disabled (.hy off in document 
or in WSCHANGE DBCC).  Setting HYMEM off will allow the speller to use 
this 60k of memory, but hyphenation will be off permanently (even if 
the user sets hyphenation "ON") until the user changes HYMEM.  It is 
only recommended that the user change this setting if he never uses 
hyphenation.


Print to End of Document

In the "Page numbers" field of the Print dialog box, you can tell 
WordStar to print starting at a specific page and go to the end of the 
document by entering only a hyphen after the starting page number.  
For example, enter "3-" to print from page 3 to the end of the file.  
Prior to this version, you had to enter an ending page number equal to 
or greater than the last page of the document.


Embed ESC Characters in in Non-documents

To embed an ESC character into a non-document file, press Ctrl-P then 
ESC.  You may also use Ctrl-P then Ctrl-[.  (You can no longer use ESC 
to clear the Print menu.  Instead, press the spacebar.)



