WPELSE User's Guide
WPE version of LSE


Los Alamos National Laboratory
Los Alamos, New Mexico


July 1987







INTRODUCTION

The WPELSE editor adds WPE and WPS+ functionality to Digital's newest editor 
LSE--Language Sensitive Editor.  The major purpose of WPELSE is to make it 
easier for those who know WPS+ or WPE to migrate to or use LSE for code 
development (i. e., you don't have to learn a new editor!).  LSE by itself 
provides major improvement in reducing the amount of time required to develop 
software.  WPELSE adds another major improvement for the WPE or WPS+ user by 
reducing the amount of time in learning the new editor.  This is accomplished 
by:
    - 	 keeping all the functionality of WPE,
    - 	 making the key assignments for WPELSE virtually the same as WPE,
    - 	 allowing the user to toggle function keys f11 through f14 between WPE 
         and the most used LSE key definitions,
    - 	 and expanding help to include WPE and LSE keys, and language syntax 
         definitions.
WPELSE works on ASCII files and is especially tailored for development of 
software code and also works well on DCL files.  It is capable of working on 
other types of files as well, subject to the restrictions specified in the 
VAXTPU reference.

WPELSE works with VT2xx and VT3xx series of terminals.  The VT2xx setup should 
not have a VT100 ID.  WPELSE also works with VT100s, with a slightly reduced 
capability.  Terminal emulators for VT100s and VT2xxs on PC's also seem to 
work, but functionality of WPELSE then depends upon the quality of the 
emulator, which is variable at best.

WPELSE is a heavily modified version of WPE and is built on a modified version 
of EVE.  The modifications to EVE were necessary to allow it to be built on 
top of LSE.  And, of course, LSE was built by Digital using TPU. 

WPELSE was written by Mike Boorman.  WPE was originally produced by Dale Coy 
and Karl Nielsen.  All of us are incarcerated at Los Alamos National 
Laboratory (by choice, sort of).  This document is a happily plagiarized 
version of WPE User's Guide written by Dale Coy. 

WPS+, EVE, TPU, and LSE are products of Digital Equipment Corporation.






MINI-TUTORIAL


ACCESSING and EXITING from WPELSE

To access WPELSE from a VMS prompt-

	 $ WPELSE filename <cr>

If you have previously edited a file using WPELSE and want to re-edit the same 
file simply type 

	 $ WPELSE <cr>

since WPELSE "remembers" the last file that you have edited.  WPELSE will not 
"remember" the last file you edited if you have logged off between editing 
sessions. WPELSE's memory is good, but not that good. 

To exit or quit WPELSE,

	 press: <Gold> F, function key F10, Keypad 3, or Ctrl Z to exit;
	       <Gold> K to quit.

If you "exit" the changes you have made to the file will be saved.  "Quit" 
means the file changes will not be saved.


HELP

To complicate matters there are four (count 'em) types of help that can be 
accessed through WPELSE: 

To get help on the keyboard press the Help key or <Gold> H. There are several 
screens which provide diagrams of the keys.  You may also press any key and 
get a description of its function.

To get help on the language syntax press <Gold> Help or <Gold> J.  The 
language you get the help for depends upon the extension to the file name.  
For example, .FOR means FORTRAN, .PAS means Pascal, etc.

To get help on advanced LSE commands press <Gold> DO (or <Gold> ] ) and then 
type help.

To get help on advanced EVE or TPU commands press DO (or <Gold> [ ) and then 
type help or help tpu.


ENTERING TEXT

WPELSE is similar to most word-processing editors in that you don't have to 
press return if you are editing normal text.  The editor automatically "wraps" 
your text to the next line for you.  The right margin is normally set to 
column 79. WPELSE, like WPE, works with an eight character hot zone--new words 
will not begin past column 71.
  
When you enter WPELSE you are automatically placed in "insert" mode.  That is, 
any text you type is placed at the current cursor position and preceding text 
is pushed to the right and down.  "Overstrike" mode can be used by pressing 
F14, text placed into a document in this mode will overwrite the text beneath 
it.


BASIC LSE DEFINITIONS AND FUNCTIONS

WPELSE also has the LSE capability for tokens and placeholders.  A placeholder 
is a "string" which denotes a type of language syntax and is used to mark a 
place in the text.  A placeholder can be "expanded" or replaced by the syntax 
itself or another placeholder.  A token is usually a language element itself 
such as "if...then" or "common".  A token can be "expanded" also simply by 
typing the first few letters of the token and then pressing the expand key. By 
using placeholders and tokens, software can be rapidly and correctly entered 
into your text file.  The major LSE keys used for expansion, erasure, and 
movement are mapped into the function keys F11 through F14, and are accessed 
by pressing F17 which toggles F11 through F14 from either WPE or LSE 
definitions.

Let's take an example.  Invoke WPELSE with a file that doesn't exist yet.  As 
an extension to the file name, type FOR or PAS or whatever your favorite 
language happens to be.  Since the file is being created by WPELSE, it will 
put a placeholder at the top of the file.  The following example will use 
Pascal (for us queche eaters, also since most FORTRAN programmers don't need 
or want something even vaguely unobtuse ).  In Pascal, you'll see at the top 
of the screen:
		       %{compilation_unit}%
		       [end of file]
The first line is a placeholder and the second, of course, is the end of file 
marker present in every file.  The placeholder is denoted by the percent sign 
and curly braces.  The cursor should be on the "c" of "compilation".  To 
expand the placeholder first press F17 to toggle the function keys f11 through 
F14 to LSE keys, then press F11-expand.  You'll now get a choice of program 
or module.  Select one by using the cursor and hitting return.  If you have 
selected "program" you should see the following:
		   [ %[comp_unit_attribute]%... ]
		   PROGRAM %{user_defined_id}% ( %[program_parameter]%... );  

		   %[header_comments]%

		   %[declaration_list]%...

		   BEGIN
		   %[statement_list]%...
		   END.
Each of the %[, %{ are placeholders and can be expanded further.  The three 
dots on the end of some placeholders means that when you expand them, you get 
another copy of the same placeholder.  For examle try expanding 
%[declaration_list]%.  You get another %[declaration_list]... at the end of 
the expansion.  BEGIN is a token and can also be expanded to a BEGIN...END 
pair.  On each of the above placeholders you are given a choice of what you 
want the expansion to consist of, just like the first one we expanded. You can 
get help on any of the expansions simply by pressing <Gold> Help.  If you 
decide that you don't need an expanded placeholder simply type <Gold> 
F11-unexpand.  The last expanded placeholder will be unexpanded no matter 
where your cursor happens to be.  This could be considered a bug.

You can hop from placeholder to placeholder simply by pressing F12-Next Plhr 
or <Gold> F12-Prev Plhr.  Placeholders can also be erased by pressing 
F14-Erase Pldr and unerased by you guessed it: <Gold> F14.  Before you compile 
your program erase all placeholders, otherwise the compiler will give you an 
error on each one it finds. 

To compile your program directly from WPELSE, first press <Gold> Do and then 
type "compile" and a carriage return.  Do not type Pascal or FOR or any other 
name of a compiler: WPELSE "knows" which language you're using.  For those of 
you who have compilation errors (not me!) WPELSE has special capabilities for 
fixing the code syntax.  The errors are placed in a buffer called 
appropriately enough "error", and is displayed on your screen as a second 
window when compiling is complete.  You can toggle back and forth between your 
error listing and source code buffer by pressing F13-Next error which scrolls 
the error buffer to the next error automatically.  Then press Source (<Gold> 
F13) which automatically scrolls the source code buffer to the likely place in 
the code you made the error.  Neat, huh?

Other things you can do from within WPELSE are talk to SCA, the Source Code 
Analyzer, CMS the Code Management System, and other utilities.  SCA gives you 
the capablility of producing cross reference lists and call trees from WPELSE.  
For more information on these please see the LSE/SCA User's Guide.  I'm not 
going to attempt to explain all of the possible options; and there are a lot 
of them. 
 

CURSOR MOVEMENT

Cursor movement has several (read: lots of) keys assigned to the keyboard.

There are the arrow keys on both VT100 and VT2xx and VT3xx keyboards which 
will move either one character left or right, or one line up or down. <Gold> T 
moves the cursor to the top of the file without scrolling and <Gold> B moves 
the cursor to the bottom.  If you like to scroll (stroll?) your way up or down 
use <Gold> up arrow or <Gold> down arrow respectively.  The scrolling can be 
stopped by pressing Ctrl C.  Alternatively, Prev Screen and Next Screen on 
VT2xx and VT3xx keyboards move the cursor either up or down the number of 
lines in the window.  You can also move to the beginning of the line (<Gold> 
left arrow), move to the last of the line (<Gold> right arrow), move to the 
other buffer (F19), move one sentence (Sent), move one paragraph (Para), move 
to the next orbit(<Gold> ballistic), punt (<Gold> K) which is guaranteed to 
get you somewhere, etc.; ad nauseam.


ERASING TEXT

There are, of course, many methods of deleting or erasing text.  You can Del 
Word (PF3) or Del Char (PF4).  With these, text is erased forward from the 
cursor. Del Word will not automatically delete the carriage return an the end 
of a line, also it will stop deletion when any of the right brackets, either 
), ] or }, are found.  Pressing DEL (<x]) deletes the character to the left of 
the cursor unless it happens to be a horizontal tab.  Then the appropriate 
number of spaces are inserted effectively moving the cursor left one space.  
Pressing F13 deletes the entire word the cursor is on even if the cursor is in 
the middle of a word.  Pressing F20 deletes text from the current cursor 
position to the end of a line.  Pressing F6 will delete the entire line.  For 
large amounts of text use Select and Cut, or Select and Remove.  Also Rub Line    
(<Gold> DEL) and Rub Sentence (<Gold> F13) are implemented the same way as 
WPS+.
  
When you erase or delete text, the text is actually removed from your file and 
written to any one of four buffers.  This paves the way to restoring your 
deletions if you so wish.


COPYING TEXT

WPELSE has the capability of copying blocks of text from one place in the file 
to another.  To copy without deleting the old text, first Select a range of 
text to be copied, then press <Gold> Cut (copy).  Next place the cursor at the 
location where you want the text placed and press Paste.  The text is now 
copied to the new location. 

To move a block of text which actually deletes the text from the old location 
you perform a similar operation.  The only difference is pressing Cut without 
pressing <Gold> first.   


OOPS-OR HOW TO RESTORE ERASED TEXT 

If you have accidentally (or on purpose) erased text that you need to restore 
there are, of course, several different ways to restore the lost text.  This 
is due to the many ways you can erase text.  The method of restoration depends 
on the way you erased or deleted your text.  Pressing <Gold> Del Char (PF4) 
restores the last character deleted by Del Char, or DEL.  Pressing <Gold> Del 
Word (PF3) restores the last word deleted by Del Word, Rub Line, Delete to End 
of Line, or Rub Sentence.  Pressing <Gold> F6 restores the last line erased by 
Delete Line.  Pressing Paste will restore blocks of text erased by Cut.
Since the erased or deleted text is in a buffer somewhere and the text is not 
destroyed when you restore it, you can actually "restore" it as many times as 
you wish. This is most often used with the Cut and Paste commands.


SEARCHING AND REPLACING

To search your file for a particular string or phrase, use Find.  You'll be 
prompted to enter the string you wish to find.  If you enter the text in lower 
case only, WPELSE will consider either lower or upper case text to be a match.  
Anything entered in upper case must be matched exactly.  Once WPELSE finds a 
matching string, it places the cursor at the beginning of the located string.  
If no match is found, WPELSE will tell you so.  Also <Gold> Comma will perform 
the same function as Find.

Find always looks in the in the current direction, either forward or reverse.  
If Find does not find a match in the current direction, it looks in the other 
direction.  If it finds a match in the other direction, it will ask you if it 
should go to that location.  If your cursor is currently on the only matching 
string, WPELSE will not "find" it.  This is a feature.

Find Again: After doing a Find, you may wish to repeat the operation with a 
slightly different string.  Press Find, and then Up Arrow, to recall the 
previous command.  You can then edit the string and press Return to execute.

Find Next: To find the next occurrence of a string press either <Gold> Find, 
<Gold> Period, or press Find twice.

Find >: Pressing the Enter key will search for the next occurrence of the  
character '>'.  '>' can in this case be used as a bookmark.

Continue Search and Select: <Gold> Period or Cont Srch on WPS+ keyboards can 
be combined with a Select of the matching text by pressing <Gold> /.  After 
the matching text is selected, you can then press <Gold> ' (quote) to replace 
the select region with whatever is in the paste buffer.

Global Search and Replace: To search and optionally replace all matching 
strings in the file, press <Gold> ; (semicolon).  WPELSE will then prompt you 
for the search string and the replacement string.

As each match is found, you are asked whether or not to replace it.  Your 
choices are yes, no, all, last, and quit.  Last means "do this one and quit", 
all means "do all in the current direction".  You will be asked if you wish to 
change directions when the end of file is reached.

Pressing <Gold> ; followed by Up Arrow will recall the previous search string. 
You can then edit the string and repeat the operation.


PAGE MARKERS AND PAGINATION

There is only one type of page marker in WPELSE.  This is the true form feed 
and is displayed as two Fs in one column.  Pressing <Gold> N or <Gold> P will 
insert this marker at the left margin.

To nicely paginate your file for printing, <Gold> Page (PF2) will count lines 
and place page markers at the appropriate places.  WPELSE will first back up 
to the previous page marker and then moves forward 60 lines and insert a page 
marker.  If this is not an appropriate place, you can delete the page marker 
and move up to an appropriate location and place it there.  Then continue on 
through your file with <Gold> Page.  

If WPELSE finds and existing page marker before it gets to 60 lines, it will 
ask you whether or not you wish to remove the page marker.  If you answer no, 
WPELSE will stop at that point.

The number of lines in a page is controlled by the CT command (CT=Current Text 
length).  To change this number press Do and then type CT nn where nn is the 
new page length.


WRAPPING PARAGRAPHS

If your paragraphs are beginning to look somewhat like a rat's nest, you can 
clean then up by pressing <Gold> Para (KP5).  WPELSE will then adjust the 
lines to fit the current margin of the paragraph the cursor is on (the cursor 
can be anywhere in the paragraph).

For multiple paragraphs, you can also Select a region so that <Gold> Para will 
wrap them all in one operation.  


BOOKMARKS

When debugging or changing text it is sometimes useful to place a "bookmark" 
in your text so that you can find it quickly.  WPELSE has the capability of 
placing named but invisible bookmarks in your text.  Pressing KP9 will insert 
an invisible bookmark at the current cursor location and prompt you for a 
name.  You can return to the bookmark by pressing <Gold> KP9 and then typing 
the name of the bookmark when prompted.

This function works across multiple windows and buffers.


WINDOWING

Windowing (for those of you who like to "do" windows) is a useful feature 
which allows the display of two (in this case) separate text areas on the 
screen simultaneously.  For example, by using windows you can display two 
separate paragraphs on the screen, scroll one paragraph but not the other, cut 
and paste between the windows; etc.  You can even view two separate files 
simultaneously. 

Windows (F18) splits the screen into two windows and places the cursor in the 
second window.  Initially the second window is a copy of the first.  But you 
can scroll the second window to another place within the same file without 
affecting what is being displayed in the first window.  Pressing Windows again 
returns you to one window on the screen.  The window displayed is the window 
the cursor was in.

Other Buffer (F19) places your cursor in the other window when two windows are 
being displayed.

<Gold> Get File (<Gold> F18) replaces your current buffer with a new file and 
a new buffer name. This is most useful in two window mode since it allows you 
to cut and paste between files.

<Gold> Buffer (<Gold> F19) allows you to change buffers in a window.  If you 
are editing buffer A, and want to edit buffer B, press <Gold> Buffer then type 
the name of the buffer when prompted.  


SETTING TAB POSITIONS

Pressing <Gold> R displays a message indicating the current tab settings.  If 
you wish to change the tab settings, press Do, then at the prompt type either
									      
		   set tabs every nn     or
		   set tabs at n nn nn ...
where nn are the tab positions you want.

There is only one tab setting for the entire file (compilers barf on inserted 
rulers) so if you change tab settings you change the settings for the entire 
file.  Also, thanks to a fix, tab settings will be printed correctly.  When a 
file is printed the tab settings are changed to spaces first, then the file is 
printed.  This is especially useful for tabular data or indented source code 
files.


132 COLUMN MODE

132 column mode is available if you have lines longer than 80 characters and 
don't mind squinting.  When you start WPELSE, it checks to see if the file to 
be edited has lines longer than 80 characters.  If so WPELSE will prompt you 
for 132 column mode.  This function is not perfect since it only counts 
characters.  Horizontal tabs are counted as one character, not as a certain 
amount of spaces.

If you do have lines longer than 80 characters, and choose not to squint you 
can still view the remainder of the line by pressing Do, and at the prompt 
type Shift right nn or Shift left nn until you see the desired text.


MESSAGE BUFFERING

Messages either sent to you by VMS or by the editor itself will appear on the 
last line of the display.  Unfortunately, if the message takes several lines 
you will only see the last line.  But don't despair, there is a way to see all 
of the messages.  Messages are stored in a buffer called MESSAGES, 
appropriately enough.  To get there press <Gold> Buffer and type MESSAGES at 
the prompt.  You can scroll through MESSAGES the same way as any other buffer.


WRITING FILES

WPELSE saves the results of your editing session when you exit and also keeps 
a journal file for recovery from a crash.  However, occasionally you will want 
to save intermediate results, or copy parts of a file you are editing to 
another file.  Pressing <Gold> W will write the entire buffer to a file you 
name.  To write only a portion of a file use Select to establish a select 
region and then press <Gold> W.


WRITING SPECIAL CHARACTERS

In WPELSE you can if necessary insert special characters such as ESC, BELL, 
etc; in your text.  To do this, press F7 then at the prompt type the special 
character you want.  For example,
	 F7  Ctrl_G  inserts a BELL,
	 F7  Ctrl_[  inserts a ESC,
	 F7  Ctrl_H  inserts a Backspace,
	 F7  Ctrl_J  inserts a Line Feed.
Some characters cannot be inserted by this method (ctrl_s, ctrl_q, etc.).  For 
these press Do and then type tpu copy_text (ASCII(25)) for ctrl_y, for example.
The Escape character is used frequently in terminal control.  To insert this 
character press <Gold> F7.


PRINTING

For the sake of convience, you can print your file or select range directly 
from WPELSE in either one of two ways.  You can have your file printed with 
all control characters such as line feed, carriage return, etc., printed in a 
translated form -- you can see them.  This method prints horizontal tabs as 
"{HT}".  You can also have the control characters not translated into the 
above form.  In this case horizontal tabs are changed in the appropriate 
number of spaces and then printed.  

To print a file press Do, then type print at the prompt and answer the 
questions.  The print output will go to the system printer.


REMOVING CR AND LF CHARACTERS

FIX is a command which will remove CR and LF characters.  This command is 
often used to convert .mem files to a more reasonable format.  The buffer 
containing the fixed copy will be renamed either filename.lis or filename.txt.
To FIX a file press Do, then type Fix at the prompt.


NUMERIC AND APPLICATION KEYPADS

Often it is necessary to type in large quantities of numeric data.  The 
numeric keypad can be toggled to either numeric or application mode(i.e. 
editor mode) by pressing Do, then type Num to get the keypad in numeric mode 
or press Do and then type App at the prompt to get the keypad back into 
application mode.


SPECIAL FILE TYPES

WPELSE provides special handling for some common types of files.  They are 
recognized by the file "type".

.TPU - Source files for the TPU text utility are recognized.  When editing 
these files, pressing <Gold> Return will insert a TPU comment line.

.HLP - Help files are recognized, and you are asked if you want WPELSE to 
tailor for them.  If you answer yes, the margins are set at 2 and 66.  When 
editing these files pressing <Gold> Return will insert a HLP comment line.  To 
add a topic, position to column 2 and use the left arrow key to move to column 
1.

.FOR - FORTRAN files are recognized.  When editing these files, pressing 
RETURN will insert a line beginning with a tab.  Pressing <Gold> Return will 
insert a FORTRAN comment line.

.COM - WPELSE automatically tailors itself for .COM files. Several functions 
are different for these files:
    Del Word stops deleting when the characters )}]"'_/;:.,-are encountered.
    Return inserts a line beginning with $ and a tab.  Continuation lines are 
           handled properly.
    <Gold> Return inserts a DCL comment line (of course).


EXTENDING WPELSE

WPELSE uses the capabilities of TPU, LSE, and EVE which allow extension.  Also 
WPELSE was designed to be extended.  To extend WPELSE either edit the source 
code, or start with 
    LSE/section=wpelse.tpu$section/command=your_command.tpu
To initialize variables, buffers, etc., place all init code in a procedure 
called WPE$LOCAL_INIT.  WPELSE will automatically call this procedure to 
initialize your code.






KEY ASSIGNMENT TABLES





MAIN KEYBOARD <GOLD> KEYS

    key name                    WPELSE Function
________________________________________________________________

    <Gold> a			Change text mode
    <Gold> b			Go to Bottom of document
    <Gold> c			Center text
    <Gold> f			File main buffer then exit
    <Gold> g			Get file
    <Gold> h			WPELSE help
    <Gold> i			1 DCL commmand
    <Gold> j			Help language
    <Gold> k			Kill (quit)
    <Gold> l			Recall last command
    <Gold> n			Insert new page marker
    <Gold> p			Insert new page marker
    <Gold> r			Ruler
    <Gold> t			Go to Top of document
    <Gold> v			View tabs
    <Gold> w			Write file
    <Gold> x			Find the ) that matches this (
    <Gold> z			Show Information  

    <Gold> <			Prev screen
    <Gold> >			Next screen
    <Gold> ,			Search
    <Gold> .			Continue search
    <Gold> /			Continue search and select
    <Gold> ?			Display special character
    <Gold> ;			Global replace
    <Gold> '			Replace
    <Gold> \			Date
    <Gold> |			What line number?
    <Gold> $			Spawn
    <Gold> [			EVE Do command prompt
    <Gold> ]			LSE Do command prompt
    <Gold> del			Erase to start of line
    <Gold> (or)			Insert pair of ()
    <Gold> {or}			Insert pair of {}
    <Gold> "			Insert pair of ""
    <Gold> return		Comment
    <Gold> =			Change window
    <Gold> tab			Untab





CONTROL KEYS

Functions which are in parenthesis are terminal functions as described in
DCL Concepts Manual.

    key name			WPELSE Function
___________________________________________________________________

    Crtl a			Change text mode
    Ctrl b			Go to previous error
    Ctrl c			(Cancel)
    Ctrl d			Change indentation/forward
    Ctrl e			Expand placeholder or token
    Ctrl f			Return to main buffer
    Ctrl g			Go to source code
    Ctrl h			(Move to start of line)
    Ctrl i			(Tab)
    Ctrl j			Erase word
    Ctrl k			Erase placeholder/forward
    Ctrl l			Next error				       
    Ctrl m			(Return)
    Ctrl n			Go to next placeholder/forward
    Ctrl o			(Output-off/on toggle)
    Ctrl p			Go to placeholder/reverse
    Ctrl q			(Restart)
    Ctrl r			Remember
    Ctrl s			(Stop)
    Ctrl t			(status information)
    Ctrl u			Erase to start of line
    Ctrl v			Quote
    Ctrl w			Refresh screen
    Ctrl x			(Discard)
    Ctrl y			(Interrupt)
    Ctrl z			Exit

    <Gold> ctrl a		Define alias
    <Gold> ctrl e		Unexpand placeholder
    <Gold> crtl d		Change indentation/reverse
    <Gold> ctrl k		Unerase placeholder
    <Gold> ctrl l		Go to previous error
    <Gold> ctrl z		TPU command




ARROW KEYPAD

    key name			WPELSE Function
__________________________________________________________________________

    Find			Find occurrence of a string
    Insert			Insert
    Remove			Remove
    Select			Select
    Prev Screen			Previous screen (scroll up one screen)
    Next Screen			Next screen (scroll down one screen)
    Up arrow			Up arrow (move cursor up one line)
    Left arrow			Left arrow (move cursor left one character)
    Down arrow			Down arrow (move cursor down one line)
    Right arrow			Right arrow (mover cursor right one character)

    <Gold> Find			Find next occurrence of string
    <Gold> Remove		Copy
    <Gold> Prev Screen		Scroll to top of document
    <Gold> Next Screen		Scroll to bottom of document

    <Gold> left arrow		Move to start of line
    <Gold> right arrow		Move to end of line
    <Gold> up arrow		Move to top of file
    <Gold> down arrow		Move to end of file




EDITING KEYPAD

    key name			WPELSE Function
__________________________________________________________________________

    pf1				<Gold>key
    pf2				Page
    pf3				Delete word
    pf4				Delete character
    kp7				Sentence (move one sentence)
    kp8				Tab position (move one tab stop)
    kp9				Mark (set bookmark)
    kp-				Cut
    kp4				Word (move one word)
    kp5				Paragraph (move one paragraph)
    kp6				Upper case (change character to upper case)
    kp,				Paste
    kp1				Backup (change direction to reverse)
    kp2				Line (move one line)
    kp3				Exit
    kp0				Advance ( change direction to forward)
    kp.				Select 
    kp enter			Go to next >

    <Gold> pf2			Paginate file
    <Gold> pf3			Undelete word
    <Gold> pf4			Undelete character
    <Gold> kp8			Fill
    <Gold> kp9			Go to
    <Gold> kp5			Wrap paragraph
    <Gold> kp6			Lower case
    <Gold> kp1			Top
    <Gold> kp3			Exit
    <Gold> kp0			Bottom
    <Gold> kp enter		Swap characters




FUNCTION KEYS

    key name			WPELSE Function
________________________________________________________________________

    F6				Delete line
    F7				Quote
    F8				Cap word
    F10				Exit

        The following function keys f11 through f14 are toggled
        between two functions: wpe like or lse like by the function
        key f17.

    F11				Forward/reverse or Expand
    F12				Move by line or Next placeholder
    F13				Erase word or Next error
    F14				Insert/overstrike toggle or Erase placeholder

    help			Help
    do				Do EVE command

    F17				Function key toggle switch
    F18				Windows
    F19				Other buffer
    F20				Delete to end of line

    <Gold> f6			Undelete line
    <Gold> f7			Escape
    <Gold> f8			Uppercase word
    <Gold> f10			Exit

            The following function keys are toggled the same as 
            f11 throught f14.
    <Gold> f11			Unexpand placeholder
    <Gold> f12			Go to last placeholder
    <Gold> f13			Go to source buffer
    <Gold> f14			Unerase placeholder

    <Gold> help			Help language
    <Gold> do			Do LSE command

    <Gold> f18			Get file
    <Gold> F19			Go to buffer






KEYPAD DIAGRAMS


EDITING KEYPAD

Press Help or <Gold> H to display the keyboard diagrams.

The editing keypad works mostly like WPS+.  Some of the WPS+ functions
are not present due to incompatibilities with the compilers.  For example,
the compilers do not take bolded or underlined characters in its syntax.
Also note that KP3 (upper case) has been redefined to be "EXIT" for 
compatability with DM.  Bold will uppercase a selected range of characters, 
and <Gold> Bold will lowercase a selected range.



     +-------+-------+-------+-------+
     |<Gold> | Page  |Del Wrd|Del Chr|
     |       |Paginat|Undel W|Undel C|
     +-------+-------+-------+-------+
     | Sent  |Tab Pos| Mark  |  Cut  | Cut deletes a select range and
     |       |       | Go to | Copy  | puts it in the paste buffer.
     +-------+-------+-------+-------+ Copy (<Gold> Cut) puts a select
     | Word  | Para  |Up case| Paste | range in the paste buffer, but
     |       | Wrap  | Lower |       | does not delete it from the file.
     +-------+-------+-------+-------+
     |Back up| Line  | Exit  | Go to | Wrap straightens up the margins of
     |  Top  |       |       | next >| a paragraph.
     +-------+-------+-------+       |
     |    Advance    |Select |       |
     |    Bottom     |       | Swap  | Swap exchanges current and the next
     +---------------+-------+-------+ character.




ARROW KEYPAD


      +-------+-------+-------+
      | Find  |Insert |Remove |    Find:    find occurrence of string
      |Fnd Nxt| Here  | Copy  |    Find Nxt:find next occurrence of string
      +-------+-------+-------+    Insert:  paste
      |Select |Prev Sc|Next Sc|    Remove:  cut
      |       | Top   |Bottom |    Copy:    cut without deletion of text
      +-------+-------+-------+    Select:  establish select region
              |   ^   |            Prev Sc: scroll up one screen
              |   |   |            Top:     Go to top of document
              |Scr up |            Next Sc: scroll down one screen
       +------+-------+-------+    Scr up:  scroll up to top of document
       |  <-  |   |   |  ->   |    SOL:     move cursor to start of line
       |      |   v   |       |    Scr dn:  scroll down to bottom of document
       |  SOL |Scr dn |  EOL  |    EOL:     move cursor to end of line
       +------+-------+-------+



FUNCTION KEYS

            F6         F7          F8          F9          F10
      +-----------+-----------+-----------+-----------+-----------+
      |Delete Line|  Quote    | Cap Word  |           |   Exit    |      
      |Undelete Ln|  Escape   |Upper Word |           |           |             
      +-----------+-----------+-----------+-----------+-----------+
            Quote:      Lets you enter special and control characters
            Escape:     Inserts an ESC into the document
            Cap Word:   Capitalizes the first character of a word
            Upper Word: Capitalizes all characters in a word
            Exit:       Same as <Gold> F or KP3

      The following function keys can take on more than one set of
      definitions.  Keys F11 through F14 can either be defined as
      WPE like keys, or as LSE like keys.  Function key F20 toggles
      the key definitions for F11 through F14 between WPE and LSE keys.

           F11         F12         F13         F14
      +-----------+-----------+-----------+-----------+
      |Expand Pldr| Next Pldr |Next  Error|Erase  Pldr|  LSE Function
      | Unexpand  | Prev Pldr |  Source   |  Unerase  |  Definitions
      +-----------+-----------+-----------+-----------+
            Expand Pldr:  Expands the current placeholder
            Unexpand:     Reverses the last expanded placeholder
            Next Pldr:    Moves the cursor to the next placeholder
            Prev Pldr:    Moves the cursor to the previous placeholder
            Next Error:   Moves the cursor to the next error in the
                          error buffer
            Source:       Moves the cursor to the source buffer
            Erase Pldr:   Erases the current placeholder
            Unerase:      Unerases the last erased placeholder

           F11         F12         F13         F14
      +-----------+-----------+-----------+-----------+
      |  Fwd/Rev  |  Move by  |Erase  Word| In/Ovrstr | WPE Function
      |  Toggle   |   Line    | Rub Sent  |  Toggle   | Definitions
      +-----------+-----------+-----------+-----------+
           Fwd/Rev Toggle:   Changes the current direction to
                             forward or reverse
           Move by Line:     Moves the cursor one line in the current
                             direction
           Erase word:       Erases the current word, no matter where
                             the cursor is located within the word.
           Rub Sent:         Erases from the current cursor to the end
                             of the sentence
           In/Ovrstr Toggle: Changes the mode to insert or overstrike

           F15              F16
      +-----------+-----------------------+
      |   Help    |    Do EVE Command     |
      | Help Lang |    Do LSE Command     |
      +-----------+-----------------------+
           Help:            Gets help for any keyboard command
           Help Lang:       Gets help for the language syntax
           Do EVE Command:  Allows direct input of EVE commands
           Do LSE Command:  Allows direct input of LSE commands

           F17         F18         F19         F20
      +-----------+-----------+-----------+-----------+
      |Functn key |  Windows  | Other Buff|Delete to  |
      |  Toggle   |  Get File |  Buffer   |end of line|
      +-----------+-----------+-----------+-----------+
           Functn key Toggle:      Toggles F11 thru F14 from WPE to LSE
                                   key definitions and vice versa
           Windows:                Toggles between one and two windows
           Get File:               Retrieves the contents of another file
                                   for editing
           Other buff:             Moves the cursor to the other window
           Buffer:                 Allows viewing of other buffers
           Delete to end of line:  Deletes text from the current location
                                   to the end of the line