


     OOPS(U1)             LS-DOS 6 - Utilities 1              OOPS(U1)



     Name
          OOPS - Allows a previously-typed DOS command to be edited.

     Syntax
          oops

     Description
          Oops provides a convenient method of correcting a mistyped
          command without retyping the entire command.  This is also
          useful when performing repeated operations where only a
          small part of a command changes, such as a filename.  Oops
          allows you to edit any line that is still on the screen.

          When oops is invoked, the <UP-ARROW> and <DOWN-ARROW> keys
          allow you to move the cursor to the line that is to be
          edited.  When the cursor is over the desired line, press
          <ENTER>, <F3> or <.>.  (<ENTER> clears the screen below the
          selected line while <F3> and <.> do not.)

          Once a line has been selected, it may be edited. Oops uses
          the same editing commands that are available in the EDIT
          command in BASIC.

          Several of the commands accept an optional count.  By
          entering a one or two digit number prior to the command,
          that command will be performed the specified number of
          times.  As the number is entered, it is displayed at the
          bottom of the screen.  The commands that accept a count are
          noted by [n].


          General commands:

          <ENTER>
               Signals that editing is complete and the command is
               passed to the operating system command interpreter.

          <BREAK>
               Exits oops without performing any operation.  If oops
               is in a special mode, the first time the <BREAK> key is
               pressed exits the special mode and the second <BREAK>
               exits oops.  If oops is in a special mode, a message is
               displayed at the bottom of the screen.  For example, if
               the display shows the word "change", then oops is
               currently in the change mode.

          <F3> Exits any special mode oops may be in.  The current
               special mode (if any) is displayed in the lower-right
               cornet of the screen.  If oops is not in a special mode
               and <F3> is pressed, the <F3> is ignored.





     Page 1                                             May 15th, 1993






     OOPS(U1)             LS-DOS 6 - Utilities 1              OOPS(U1)



          <.>  Allows one or both digits of the repeat value to be
               erased.  This can be done until an edit command is
               entered.  The last digit entered (the ones' digit) is
               the first to be deleted.

          <U>  Aborts all changes made so far and restores the line to
               its original state.  The cursor is positioned to the
               first column.


          Insert commands:

          <I>  Enters insert mode.  Characters will be inserted in
               front of the character that is under the cursor.
               Pressing <ENTER> submits the command to the operating
               system.  Pressing <F3>, <BREAK>, <SHIFT><UP-ARROW> or
               any other control character exits insert mode.

          <X>  Enters insert mode, but first the cursor is moved to
               the end of the line.  See the <I> for information on
               insert mode.

          <H> or <T>
               Deletes all characters to the right of the cursor and
               enters insert mode.  See the <I> command.


          Editing commands:

          [n]<C>
               Changes the character under the cursor to the next
               character that is typed.  After the change the cursor
               moves one position to the right.  Pressing <BREAK> or
               <F3> will exit the change mode.

          [n]<D>
               Deletes the character under the cursor and moves the
               text on the right of the cursor to the left to fill the
               hole.


          Searching commands:

          [n]<S>
               Oops reads the next character that is typed and
               searches for that character on the current line.  If a
               match is found, the cursor to that position.  If the
               character that is entered is not found to the right of
               the cursor, the cursor is moved to the end of the line.
               The search is case-sensitive; in other words, if you
               search for the letter 't', the uppercase letter 'T'
               will not be found by the search.



     Page 2                                             May 15th, 1993






     OOPS(U1)             LS-DOS 6 - Utilities 1              OOPS(U1)



          [n]<K>
               Searches for the next character that is typed and
               deletes the characters between the current position and
               the search-character.  If the character is not found,
               no characters are deleted.  If the character to search
               for is <ENTER>, all the characters to the right of the
               cursor are deleted.  Like the <S> command, the search
               is case-sensitive.


          Movement commands:

          <F1> or <L>
               Moves the cursor to the first column.

          <F2> Moves the cursor one column past the last character on
               the line.

          [n]<LEFT-ARROW>
               Moves the cursor one position to the left.

          [n]<RIGHT-ARROW> or <SPACE>
               Moves the cursor one position to the right.

     Notes
          The Model 4 version of oops runs in the library overlay area
          and does not disturb memory below 0x2600 or above 0x2fff.
          The Model III version loads at 0x5800.

          Programs may invoke oops, but oops will not return control
          to them.  The status of the display is not altered by oops;
          therefore, if the cursor is off when oops is invoked, it
          will be difficult to use.  Reverse video text cannot be
          edited reliably, and may not be recognized by the operating
          system command interpreter.

          To install oops as the Immediate Execution Program (IEP) in
          LS-DOS, use the command:
                COPY OOPS/CMD SYS13/SYS:0 (C=N)

          Once done, oops can be invoked by typing:       * <ENTER>

          Oops uses the @VDCTL SVC in LS-DOS or a scan of video memory
          in Model III operating systems to read the contents of the
          screen, thus allowing it to edit commands other than the
          last command entered.  The edited command is supplied to the
          operating system via the @CMNDI call or SVC.


     Files
          No files are accessed by oops.




     Page 3                                             May 15th, 1993






     OOPS(U1)             LS-DOS 6 - Utilities 1              OOPS(U1)



          If you need more information on oops(U1) or if you want to
          obtain the LDOS 5.3 version, please write to M.A.D.
          Software, P.O. Box 331323, Ft. Worth Texas, 76163.  Please
          include a Self-Addressed-Stamped-Envelope when requesting
          information.
          ------
          305152
















































     Page 4                                             May 15th, 1993



