home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / forth / compiler / fpc / jbledit.doc < prev    next >
Text File  |  1988-10-19  |  4KB  |  97 lines

  1.   Program Name:  LEDIT
  2.   Author:        Jack W. Brown.
  3.   Original Date: November 23, 1985.
  4.   Last Modified: October 5, 1988.  Converted from L&P F83 to Zimmer's F-PC
  5.  
  6.   The Ledit Program is completely in the public domain and may be freely
  7.   modified for fun and profit.
  8.  
  9.   Files
  10.   JBLEDIT.DOC  The file you are reading.
  11.   JBLEDIT.SEQ  The file that contains the source code.
  12.  
  13.   LEDIT is a string/command line editor with the same line
  14.   editing command set as the popular MS-DOS PD/Shareware command
  15.   line editor DOSEDIT.  It can be used as a string/line editor for
  16.   your applications or as a replacement for FORTH's EXPECT.
  17.  
  18.   LEDIT uses a special set of the keys on the IBM PC keyboard
  19.   to allow you to edit a Forth command/string you are entering or one
  20.   of the previous commands that you have entered.  It keeps a command
  21.   stack of the last 256 characters of commands that you have entered and
  22.   you can scroll back and forth through this stack.  It also allows you
  23.   to edit the current command being displayed.  NOTE:  1 or 2 character
  24.   commands are not saved.
  25.  
  26.   Commands that are the same as DOSEDIT
  27.  
  28.   PGUP             Scrolls backward through the command stack.
  29.   PGDN             Scrolls forward through the command stack.
  30.   UP arrow         selects the next line up
  31.   DOWN arrow       selects the next lines down
  32.   ESC              Clears the command line.
  33.   LEFT arrow       Moves the cursor left one position.
  34.   RIGHT arrow      Moves the cursor right one position.
  35.   HOME             Moves the cursor to the beginning of the command line.
  36.   END              Moves the cursor to the end of the command line.
  37.   INS              Toggles the insert function.
  38.   DEL              Deletes the character under the cursor.
  39.   CTRL-left arrow  Moves the cursor left a word at a time.
  40.   CTRL-right arrow Moves the cursor right a word at a time.
  41.   CTRL-HOME        Erases from the beginning of the line to the cursor.
  42.   CTRL-END         Erases from the cursor to the end of the line.
  43.   CTRL-PGUP        Erases the command stack.
  44.   CTRL-PGDN        Erases the displayed entry from the command stack.
  45.   BACKSPACE        Remains unchanged.
  46.  
  47.   Additional Commands Not Included in DOSEDIT
  48.  
  49.   TAB              Tab forward 5 positions.
  50.   CTRL-L           Clear screen and redisplay current line at top.
  51.   CTRL-Q           Jump to first occurance of next character entered.
  52.   CTRL-S           Same as left arrow.
  53.   CTRL-D           Same as right arrow.
  54.   CTRL-T           Delete word cursor is on.
  55.   CTRL-I           Same as TAB
  56.   CTRL-U           Delete entire line (same as ESC).
  57.   CTRL-X           Delete to end of line (same as CTRL-END)
  58.  
  59.   ALT-D            Drag cursor character forward.
  60.   ALT-S            Drag cursor character backward.
  61.  
  62.   There may be a few I forgot to document, can you find them?
  63.  
  64.  
  65.  
  66.   The function keys F1-F6 no longer have assigned functions.
  67.  
  68.   Tutorial:
  69.  
  70.   After starting F-PC enter the following at the Forth ok prompt
  71.  
  72.   FLOAD JWLEDIT.SEQ <enter> ok
  73.   NEW-EXPECT <enter> ok
  74.   .( HELLO ) <enter>
  75.   .( WORLD ) <enter>
  76.   .( IT'S ME ) <enter>
  77.  
  78.   Now use the PgUp key to see the last command .( IT'S ME).  Again
  79.   use the up PgUp key to see the preceding command .( WORLD).  Now
  80.   press enter to execute that command.  Then press the PgDn key to
  81.   see the following command .( IT'S ME).  Press either the PgUp or PgDn
  82.   keys several times to see how the commands wrap around.  Use the
  83.   Esc key to clear the command line.  Enter new commands and use the
  84.   control keys defined above to become familiar with all the functions.
  85.  
  86.   Use the Up-arrow and Down-arrow keys to pull previously entered text from
  87.   the screen above and below you current line.  Use the editing commands
  88.   to edit the line pulled back and press <enter> to execute the line.
  89.   Press Up-arrow and Down-arrow several times to see how the lines wrap.
  90.   Finally, to turn off LEDIT type:
  91.  
  92.   OLD-EXPECT <enter> ok
  93.  
  94.   Good Luck.
  95.  
  96.  
  97.