Library /sys$common/syshlp/TECO.HLB  —  Commands
  Most characters that can be typed at your keyboard are TECO
  commands.  Use them with care.

  All TECO commands are terminated with the <ESC> character,
  which will echo as a "$" at your terminal.  To execute a
  command (or string of commands), type a second <ESC> after
  the last command in the string.  No TECO command will be
  executed until two consecutive <ESC>s are typed.  <ESC> may
  be labeled <ALT-MODE> or <PREFIX> on your terminal.

1  –  J

  The "J" command is used to move the text pointer within
  the editing buffer.  Common forms of the command are:

     BJ  Point to the beginning of the buffer
     ZJ  Point to the end of the buffer

2  –  L

  The "L" command is used to move the text pointer from
  one line to another.  Common forms of the command are:

      L  Move to the beginning of the next line
     0L  Move to the beginning of the current line
     5l  Move to the fifth line past the current line
    -1L  Move back to the previous line

3  –  C

  The "C" command is used to move the pointer past a
  specified number of characters.  Common forms of the
  "C" command are:

      C  Advance the pointer to the next character
     3C  Move forward by three characters
    -1C  Move back to the previous character

4  –  T

  The "T" command is used to type text from the editing
  buffer.  Common forms of the "T" command are:

      T  Type text from the pointer to the end of the line
     0T  Type text from the beginning of the current
         line to the pointer
     5T  Print the next five lines of text, starting
         from the pointer
     HT  Print the entire contents of the editing buffer

5  –  I

  The "I" command is used to insert text, starting at the
  current pointer.  The command is of the form:

      Itext-to-insert<ESC>

  For example, to insert the text "This is a test", type

      IThis is a test$

  (Note that the <ESC> key is echoed as a "$" sign at
   your terminal.)

6  –  K

  The "K" command is used to delete lines of text from the
  editing buffer.  Common forms of the command are:

      K  Delete the text from the pointer through the
         end of the current line
     0K  Delete the text from the beginning of the
         current line to the pointer
     5K  Delete the next five lines of text, starting
         from the pointer
     HK  delete all of the text in the editing buffer

7  –  D

  The "D" command is used to delete characters from the
  editing buffer.  Common forms of the command are:

      D  Delete the character which follows the pointer
     5D  Delete the next five characters, starting
         with the character following the pointer
    -1D  Delete the character which immediately precedes
         the pointer

8  –  P

  The "P" command is used to write the text in the editing
  buffer to the output file and read the next page of text
  from the input file to the editing buffer.  Common forms
  of the command are:

      P  Write the current buffer to the output file
         and get the next page
     5P  Write the current buffer, plus the next four
         pages from the input file, to the output file,
         then read the next page from the input file
         into the editing buffer

9  –  A

  The "A" command is used to append the next page of text
  from the input file to the end of the current editing
  buffer.  The command is of the form:

      A  Read the next page of text from the input file
         and append it to the end of the current text
         buffer

10  –  S

  The "S" command is used to locate a specified string of
  text in the current buffer.  If the text is found, the
  pointer is positioned after the specified text.  If the
  text is not found, an error message is printed and the
  pointer is set to the beginning of the buffer.

  The "S" command is of the form:

      Stext-to-locate<ESC>

  For example, to find the text "find me", use the command

      Sfind me$

  (Note that the <ESC> key echoes as "$" at your terminal.)

11  –  N

  The "N" command is the same as the "S" command, except that
  the search continues across page boundaries, if necessary,
  until the specified text, or the end of the file, is
  encountered.

  The "N" command is of the form:

      Ntext-to-locate<ESC>

  For example, to find the text "find me", which may appear
  on a later page in the file, use the command

      Nfind me$

  (Note the the <ESC> key echoes as "$" at your terminal.)

12  –  FS

  The "FS" command is used to replace one string with
  another string.  If the specified text is found, it is
  deleted and replaced with the new text, and the pointer
  is positioned at the end of the specified text.  If the
  specified text is not found, the pointer is positioned
  at the beginning of the buffer.

  The "FS" command is of the form:

      FSold-text<ESC>new-text<ESC>

  For example, to replace the next occurrence of "exumple"
  with "example", use the command

      FSexumple$example$

  (Note that the <ESC> key echoes as "$" at your terminal.)

13  –  EX

  The "EX" command is used to write the current buffer to
  the output file, copy the remainder of the input file to
  the output file, and exit from TECO.  For example,

      EX$$

  (Note that the <ESC> key echoes as "$" at your terminal,
   and that you must type the <ESC> key twice to cause the
   command to be executed.)
Close Help