home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / forth / compiler / fpc / tutor / l6p160 < prev    next >
Text File  |  1990-07-15  |  4KB  |  102 lines

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