
                    ED/DOC   Updated 11/20/85


11/20/85 - By Pete Cantele - Patch to add delete to end of line, (CTRL R),
           was added.
         - A bit of code was also removed to "fix" the way ED/CMD overwrote
           existing files.  The old way killed the old file and then saved 
           the new file.  This would cause all new files to be "recreated"
           on drive 0, since the old file was nonexistant.  Of course, if 
           drive 0 were full then you would be out of luck unless you speci-
           fied the drive to save to.
           Anyhow, I just cut out the code that removed the file before saving
           it; this way the old file gets overwritten without any hassles.

    ED/CMD is a small (3K disk space) ASCII text editor written in assembly
language for the TRS-80 Model 4.  It was written to provide a handy means of
directly creating and editing ASCII text files for uploading to CIS and other
BBS's without 'converting' word processor files to ASCII.  ED can also be used
with minor limitations to create basic programs or to edit them if saved in
ASCII format.
     ED features full screen cursor control.  Spelling changes may be made
by 'overstriking'.  There are also insert and delete functions, the ability
to print out the buffer, view the disk directories, check text and buffer
length and to save, load and append files.

COMMANDS:
Left arrow  - backup cursor one character.
Right arrow - forward cursor one character.
Up arrow    - move cursor to start of current line.  If there then to start of
              previous line.
Down arrow  - move cursor to end of current line.  If there then to end of
              next line.
CTRL B - BOTTOM, jumps to the last line of text.
CTRL C - Lists these COMMANDS in abbreviated form.
CTRL D - DELETES charactor under cursor and closes up the text.  If the cursor
         is on an insert line then all following unused space is deleted.
CTRL E - ERASE text and start over.
CTRL F - FILL, inserts a blank space 80 chars long at current character.
         This space is shown as a row of small blocks.  (CTRL I was not
         used because it has same code as rt arrow).
CTRL L - LOAD a file prepared with this editor, a basic program saved with
         the ',A' option or a file downloaded from CIS.  You will be given the
         option of appending to a file already in the buffer.
CTRL P - PRINTS the text buffer to your lineprinter.
CTRL Q - QUIT and return to TRSDOS.
CTRL R - Delete to end of line and close up text.  (Similar to CTRL D.)
CTRL S - SAVE, ends editing and prompts for 'save' filespec.  If a file with
         the same name already exists you will be prompted before it is
         overwritten.
CTRL U   USAGE - shows bytes of buffer used for text and bytes remaining.
         There is no warning when end of buffer is reached so check this
         with very large files.  Buffer may vary in length (see below).
CTRL V - VIEW the directory of any drive.

Additional information:
1. Prompts are used wherever a command might put text buffer in jeopardy
2. Text buffer uses all available memory.  High$ is honored.  If no
   modules high buffer length is 47.7 K+.

Limitations of this program:

1. ED will not generate or recognize tabs.
2. Line feeds cannot be generated from the keyboard.  Linefeeds embedded in
   loaded text are converted to carriage returns.  This makes no difference
   in a text file whatsoever (they are equivalent) but will be a problem only
   in editing a basic program that uses linefeeds for screen formating.

Comments appreciated.

                                  Dick Dietz, 72406,2434

                                  (edited by Pete Cantele)
