home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 007.lha / cle.doc < prev    next >
Text File  |  1986-11-10  |  3KB  |  69 lines

  1.                        CLE:  Command Line Editor
  2.  
  3. CLE meets two needs in a Command Line Interpreter (CLI) environment:
  4.  
  5.    1. Editing within the current command line,
  6.    2. Recall (and possibly editing) of previous command lines.
  7.  
  8. The "arrow" (cursor movement) keys control movement both within the current
  9. and previous command lines.  "Left" and "Right" arrow are used within the
  10. current line to move the cursor.  "Up and "Down" arrow are used to roll back-
  11. and for-word through previous command lines (but will only work if the cursor
  12. is at the end of the command line).
  13.  
  14.  
  15. The only way to correct mistakes under CLI is either to backspace through the
  16. mistake, then re-enter everything you just backspaced over, or rub-out (Ctrl-X)
  17. the entire line and start over.  Being able to move the cursor makes it much
  18. easier to correct typing mistakes.  Just position to the typing error with the
  19. "Left" or "Right" arrow keys and backspace over the mistake.  Note that back-
  20. space removes characters to the left of the cursor.  If the mistake is under
  21. the cursor, the "DEL" key will remove it.  To insert new characters, just start
  22. typing.  CLE is always in "insert" (as opposed to "over-strike") mode.
  23.  
  24.  
  25. In addition to command recall and extended command line editing, CLE has
  26. a slightly different approach to finding commands than the CLI search "PATH".
  27. The directory search sequence for CLE is:
  28.  
  29.    1. Current directory,
  30.    2. RAM:C,
  31.    3. C:,
  32.    4. sys:system,
  33.    5. S:  (It will Execute a command file in the S: directory without you
  34.    typing:  Execute 'command_file_name'.  Just type the command file name).
  35.  
  36.  
  37. If you need to get out of CLE, or start a new copy, the commands are:
  38.  
  39.    exit --  ENDCLI  (same as under CLI),
  40.    start -- CLE     (As you do to start CLE in the first place).
  41.  
  42.  
  43.  
  44. Constraints
  45. -----------
  46.  
  47.    1. CLE currently saves the last 23 command lines.
  48.  
  49.    2. Some messages (such as from programs that execute the "RUN" command) go
  50.    to the CLI window where CLE was started (Even if other copies of CLE have
  51.    since been started).  If you need to see them, use the "Window-to-Back"
  52.    (black square over white) gadget at the top right corner of the screen.  In
  53.    some cases, the reverse happens.  The output from a command will go to the
  54.    CLI window, but the message from RUN will go to the CLE window (under CLE,
  55.    try:  "RUN cd").
  56.  
  57.    3. The Amiga DOS library function "Execute" seems to access "C:" to use the
  58.    "RUN" command.  If it is assigned to a disk directory, CLE will access that
  59.    disk for every command line (even it it finds the command you want in RAM:).
  60.    Hopefully, Commodore will upgrade the Execute function to use the search
  61.    path for accessing "RUN".  EMACS seems to suffer a slightly stranger addic-
  62.    tion to disk.  It requests the CLI disk if it has been removed, but proceeds
  63.    if you "Cancel" it's requestor.  Beware of only copying some commands into
  64.    RAM:C, then assigning C: to it.  If a program needs one of the commands you
  65.    didn't copy, it will fail.  In that case, REMEMBER:  the error message may
  66.    have gone to the CLI window (see constraint 2).
  67.  
  68. ----------------- End of CLE.DOC ----------------- 11/02/86,  S.D. Maley
  69.