






     Screen editing in TED is entered  with  the  'VT'  command.
     The  'VT'  command  will  place the user into a free format
     screen editor which is controlled exclusively by the use of
     control characters (letters typed with the CTRL key on) and
     by the use of certain escape  sequences  generated  by  the
     arrow and 'PF' (Programmed Function) keys.  
*SWITCHES

     The VT command has associated with it several command  line
     switches.  They are as follows:

       /NOL   'nolinenumbers' Do not print line numbers out
       /LIN   'linenumbers'   Print line numbers (default)
       /VT52  say our terminal is a DEC VT52
       /VT100 say our terminal is a DEC VT100 (the default)
       /ANSI  say our terminal is an  ansi standard crt
       /PAG:n Start initial page at line 'n', not at line 1
       /PDEL  enable normal rubout key movement.
       /FIL:n set fill line length to value in 'n'
       /WRAP  enable auto line wraparound for kb input
       /PRI   change line insertion method.
       /LMA:n sets the left margin to 'n'
      
     Note:

     The WRAP and NOWRAP control the action taken when the  left
     margin is reached when in input mode (automatic upon typing
     a carriage return).  If 'wrap' is set (see control V)  then
     a carriage return is automatically inserted and the current
     line broken at the last word in  the  line  when  the  line
     length  reaches  the  right  fill  margin (see '/FILL:nn').
     This allows the continuous typing of text without having to
     watch  for the right margin overflowing, useful in document
     preparation.  The usual control of this is  by  typing  ^V,
     waiting  for  the  'SET>'  prompt  and  then typing WRAP to
     enable or NOWRAP to disable autowrap.


     The FILL:value sets the  right  fill  margin  used  by  the
     keypad  command  'fill'  (Gold 4) and by the 'WRAP' option.
     The value given can be in the range  2  to  130  (roughly).
     See  'Control  V'  below  for  setting the fill once in the
     scope editor.  The default fill is 'FILL:72'.


     KED mode is the default and  only  needs  to  be  set  (via
     control  V)  if for some reason the VT100 loses the special
     keypad mode (as would happen on power  up  if  you  tripped
     over your power cord, etc...).



*CONTROL FUNCTIONS
@EDRT:SCCTRL.HLP
*HELP

     A short help text can be printed by typing escape H or GOLD
     H.


*LINE INSERTION

     Line insert mode is entered automatically by typing a  car-
     riage return, line feed or form feed (^L).  The screen will
     be blanked from the line to be inserted down to the end  of
     the  page on a VT52 or VT52 compatable terminal, while on a
     VT100 or ANSI terminal a blank line will simply appear  and
     the  rest of the text will then scroll down one line on the
     screen.  Insert mode is terminated by typing  a  control  Z
     (^Z)  instead  of a <cr> to finish off a line.  Insert mode
     is also terminated by typing control A, control B,  control
     C,  control  D,  control N, control T or the up arrow, down
     arrow, or the PF1, PF2, PF3 and PF4 keys (BLUE, RED,  GRAY,
     and f1 keys on a H19).

     The left arrow, right arrow and rubout keys  will  continue
     to  operate  normally  in  this  mode.   The  other defined
     control characters (E,  F,  G,  H,  P,  R,  U,  W,  X,  and
     backspace)  will  operate normally.  In general, any escape
     or control sequence that would cause the  current  line  to
     move will terminate the line insert mode.

     The  control  V   set   commands   'WRAP',   'NOWRAP'   and
     'FILL:decvalue' alter the way insertion mode works for text
     entry.  If 'WRAP' is set (see above under switches) then  a
     line  break  is  done automatically when the fill margin is
     reached, which defaults to 72.  NOWRAP  will  disable  this
     feature  and is the default.  'WRAP' is useful for documen-
     tation entry and a disaster for program entry!

     As an alternative to the blanking of the screen and  stick-
     ing  in  'insert' mode, the parameter 'PRINT' can be set by
     either using control V or GOLD M.   This,  when  set,  will
     cause  a cr/lf simply to start a new line ala VTEDIT or EDT
     style.  
*CURSOR CONTROL

     The two cursor movement keys left arrow and right arrow are
     used  to  control the character position within the current
     line.  They can be used at  any  time  while  in  the  'VT'
     command,  including during line insertion mode.  The up and
     down arrow keys cause the  current  line  to  change,  thus
     these two would cause early termination of an active insert
     mode.  The 'backspace' key will cause a toggle between  the
     start  of  the  current  line  and  the  end  of that line.
     Control F (^F) will move the cursor to the next word in the
     line,  and  control  R  (^R) will move back to the previous
     word.  A 'word' is defined to be anything  delimited  by  a
     space or tab.


*PAGE CONTROL

     In addition to the control B and control T  functions,  the
     'PF'  function  keys PF2 (or RED on an H19), control P (^P)
     and PF1+PF2 (BLUE+RED on an  H19)  cause,  respectively,  a
     move to the next page, a reprint of the current page, and a
     move to the previous page.  These keys also will  terminate
     any active line insertions.


*RUBOUT

     The RUBOUT key can be used at any time to erase  characters
     in the current line, including when in line insertion mode.
     It is not possible to rubout line terminators like carriage
     returns.   The  rubout  key  normally  will hold the cursor
     position while deleteing characters,  and  will  move  left
     only  when  the  end  of  the line is reached.  This can be
     changed by using the /PDEL switch on the the command  line,
     or  via  the  control V ('SET') command once you are in the
     scope editor.


*PF KEYS
The 'PF' (programable function) keys:

     PF1    -  (escape P)  'GOLD'  key  (acts  like   SHIFT   in
               KEYPAD editing)

     PF2    -  (escape Q) displays the next page of text.

     PF1+PF2-  (Gold+PF2)  displays   the   previous   page   of
               text.

     PF3    -  (escape R)  find  the   next   occurance   of   a
               previously entered search pattern (see '7').

     PF1+PF3-  (Gold+PF3)  find  the   next   occurance   of   a
               prompted for search pattern (see Gold 7).

     PF4    -  (escape S)   deletes   the   current   line    of
               text.

     PF1+PF4-  (Gold+PF4) undelete the last line deleted.


*REPEAT COUNTS

     All keypad commands (except NEXT LINE "0") can be  repeated
     from  one  to  999 times by setting a repeat count with the
     command sequence GOLD (which is PF1 on a VT100 or BLUE on a
     H19)  followed  by  a string of 1 to 3 digits.  The numbers
     will be echoed on the last line of the display.  The enter-
     ing  of  this  repeat  count  is stopped by typing anything
     other than a rubout or a  digit.   The  'repeat  count'  is
     one-shot, it is ALWAYS cleared after each control character
     or KEYPAD command.  It is also cleared  if  anything  other
     than  a  command  is  typed after setting the repeat count.
     This is also used for SPSINS, in which case  the  value  is
     converted  to  the ascii representation and placed into the
     current line.  A repeat count of '*' (typed GOLD *)  is  an
     infinite  count,  except  for  DELLINE (PF4 or ^D) in which
     case all lines to the end of the page are deleted.  


*SAVE AREAS

     The control G and control W commands can retrieve  and  get
     text  from  save  areas other than the default by preceding
     the command with the same type of 'Gold digit' sequence  as
     described above.  The only difference is that the allowable
     range is 1 thru 6.
*KEYPAD
@EDRT:SCOKEY.HLP


*MACROS

     Macros, entered via ^X and invoked by ^E (or GOLD digit ^E)
     will be automatically terminated under the following condi-
     tions.
      
             A next line would cause a movement past eof.
             A previous line would move to line 0 (?).
             A find next (PF3) fails.
             A delete (^D) reaches the end of the file.
      
     This is done in order that the user  can  specify  a  large
     repeat  count, which is done by typing GOLD digit or GOLD *
     immediately preceding the typing of ^E.


*MATCHING

     The FINDNEXT command (PF3 on a VT100 or GRAY on a H19)  and
     the  REPLACE command (ENTER or ^N) allow the use of special
     match control  character  sequences  to  allow  matches  on
     character  classes.   The  patterns are the same as in TECO
     and are as follows:
      
     Note: The 'uparrow letter'  sequence is entered by typing
      the
           Uparrow key (shift 6) followed by the letter. Note
      that
           ^E can be also be entered by typing CTRL E.
      
      
             ^X        matches any character
             ^S        Accepts any non alpha-numeric
             ^Ea       accepts any alphabetic (A-Z,a-z)
             ^Ec       accepts A-Z,a-z,0-9,.,$
             ^Ed       accepts any digit 0-9
             ^Er       accepts any upper case letter or
                        any digit 0-9.
             ^Es       accepts any space or tab
             ^Ev       matches any lowercase letter
             ^Ew       matches any uppercase letter
             ^Ex       same as ^X
             ^E<nnn>   accepts the character whose ASCII
                        code (in octal) is nnn.
             ^Q        uses the next character literally,
                        included to allow searches for
                        things like uparrows.
             ^R        same as ^Q
      
     For example, to find a <linefeed><carriage return>
     sequence, enter the search pattern (via 'SETPAT'
     (GOLD enter)) as:
      
             ^E<12>^E<15>
      
     and then type FINDNEXT.
      
      
 *ASCII CHART
 ASCII CHART
 
  CHAR DEC OCT   CHAR DEC OCT   CHAR DEC OCT   CHAR DEC OCT
  
   NUL   0   0     SP  32  40     @   64 100     `   96 140
   ^A    1   1     !   33  41     A   65 101     a   97 141
   ^B    2   2     "   34  42     B   66 102     b   98 142
   ^C    3   3     #   35  43     C   67 103     c   99 143
   ^D    4   4     $   36  44     D   68 104     d  100 144
   ^E    5   5     %   37  45     E   69 105     d  101 145
   ^F    6   6     &   38  46     F   70 106     f  102 146
   BEL   7   7     '   39  47     G   71 107     g  103 147
   BKSP  8  10     (   40  50     H   72 110     h  104 150
   TAB   9  11     )   41  51     I   73 111     i  105 151
   LF   10  12     *   42  52     J   74 112     j  106 152
   VT   11  13     +   43  53     K   75 113     k  107 153
   FF   12  14     ,   44  54     L   76 114     l  108 154
   CR   13  15     -   45  55     M   77 115     m  109 155
   ^N   14  16     .   46  56     N   78 116     n  110 156
   ^O   15  17     /   47  57     O   79 117     o  111 157
   ^P   16  20     0   48  60     P   80 120     p  112 160
   XON  17  21     1   49  61     Q   81 121     q  113 161
   ^R   18  22     2   50  62     R   82 122     r  114 162
   XOFF 19  23     3   51  63     S   83 123     s  115 163
   ^T   20  24     4   52  64     T   84 124     t  116 164
   ^U   21  25     5   53  65     U   85 125     u  117 165
   ^V   22  26     6   54  66     V   86 126     v  118 166
   ^W   23  27     7   55  67     W   87 127     w  119 167
   ^X   24  30     8   56  70     X   88 130     x  120 170
   ^Y   25  31     9   57  71     Y   89 131     y  121 171
   ^Z   26  32     :   58  72     Z   90 132     z  122 172
   ESC  27  33     ;   59  73     [   91 133     {  123 173
   FS   28  34     <   60  74     \   92 134     |  124 174
   GS   29  35     =   61  75     ]   93 135     }  125 175
   RS   30  36     >   62  76     ^   94 136     ~  126 176
   US   31  37     ?   63  77     _   95 137    DEL 127 177
*H19
@EDRT:SCH19.HLP
