home *** CD-ROM | disk | FTP | other *** search
/ ftp.update.uu.se / ftp.update.uu.se.2014.03.zip / ftp.update.uu.se / pub / rainbow / msdos / misc / sedtfile.lzh / SEDTMAN.EDT < prev    next >
Text File  |  1986-01-04  |  51KB  |  2,443 lines

  1.  
  2. Sedt Users Guide
  3. Version 2.0
  4.  
  5.  
  6.  
  7.  
  8.                 Sedt Users Guide
  9.  
  10.                Screen EDiTor Version 2.0
  11.  
  12.         Sedt is  an  interactive  "what  you see is what you get" 
  13.     editor for VAX/VMS  and the Rainbow 100 under CP/M version 2.0 or 
  14.     MS/DOS version 2.05.   Sedt  key  definitions  are  soft  and can 
  15.     easily  be  redefined  to  suit    personal   preferences.    For 
  16.     compatibility Sedt is distributed with key  definition files that 
  17.     implement sub/supersets of EDT and Gold keypads.
  18.  
  19.         Sedt is not just a reimplementation of  EDT, but contains 
  20.     a  great  number  of extentions and offers a  superior  level  of 
  21.     performance.    EDT  compatibility  is  designed  to  offer  easy 
  22.     transition to  Sedt.    Most  users  choose  to  use  Sedt on all 
  23.     operating systems.   Sedt has been integrated under ALL-IN-1 V.1, 
  24.     Mail, Nmail and, of course, DCL.
  25.  
  26.         Although Sedt is not  designed  as  a  word  processor it 
  27.     contains most word processor functions  that  can  be implemented 
  28.     without  imbedding  tokens.  Sedt implements  sophisticated  text 
  29.     fill/justification  and  automatic margin control.  With  a  post 
  30.     processor  such  as  TXTF  or  Runoff  Sedt will  satisfy  almost 
  31.     anybody's word processing requirements.
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Page 1
  64.  
  65.  
  66.  
  67.  
  68. Sedt Users Guide
  69. Version 2.0
  70.  
  71.  
  72.  
  73.                 Getting Started
  74.  
  75.          Sedt is called with the command line:
  76.  
  77.     SEDT {<Input File>} {<Output File>} {-<Line>} {-j} {-e} {-b}
  78.  
  79.             <Input  File> and <Output File> are optional file 
  80.         names.   If  only  one  file  name  is  given, it will be 
  81.         assigned to both  the  input and output files.  Sedt will 
  82.         read the input file  into  buffer  number  0  and set the 
  83.         default output for buffer number 0 to the output file.
  84.  
  85.             <Line> is an optional line  number  at which Sedt 
  86.         will position the cursor after loading the input file.
  87.  
  88.             -j will disable the generation of  a journal file 
  89.         when editing.  The journal file is  automatically invoked 
  90.         if  it  exists  when  a  new file is  edited.    -j  will 
  91.         typically  be  used  to  improve performance when editing 
  92.         from a floppy disk.
  93.  
  94.             -e will  make Sedt terminate files written with a 
  95.         Control Z (SUB).    This  is  used  to generate files for 
  96.         applications that require this terminator.
  97.  
  98.             -b will disable the  generation  of a backup file 
  99.         when writing files.  This  is typically used when editing 
  100.         with  limited  disk  space  available.      This  is  not 
  101.         encouraged because you can end up with  no file at all if 
  102.         disk space runs out before the write is completed.
  103.  
  104.             The   initialization  sequence  for  Sedt  is  as 
  105.         follows:
  106.  
  107.                 On non-PC versions determine the terminal 
  108.             type.
  109.  
  110.                 Load the input  file and display the file 
  111.             on the screen.
  112.  
  113.                 Load  a  key definition  file  (CP/M  and 
  114.             MS/DOS:  Sedtkeys.Txt.  VMS:   Sedt$Keys:).  Sedt 
  115.             will abort if it cannot find  the  key definition 
  116.             file.
  117.  
  118.                 Load  a  default  ruler  file  (CP/M  and 
  119.             MS/DOS:  Ruler0.Txt.  VMS:  Sedt$Dir:Ruler0.Txt).  
  120.             If no default ruler file  is found, Sedt will set 
  121.             up a standard ruler with tab  stops  at  every  8 
  122.             columns and margins at column 1 and column 80.
  123.  
  124.                 If  the  user  has  supplied  an optional 
  125.  
  126.  
  127.  
  128.  
  129. Page 2
  130.  
  131.  
  132.  
  133.  
  134. Sedt Users Guide
  135. Version 2.0
  136.  
  137.  
  138.  
  139.             starting  line  number  in the command line, Sedt 
  140.             will position the cursor at the specified line.
  141.  
  142.                 Look for  an  initialization file on disk 
  143.             (CP/M  and  MS/DOS:        Sedtcom.Txt.      VMS:  
  144.             Sedt$Commands:).  If the  initialization  file is 
  145.             found Sedt will read all  the  input  in the file 
  146.             and execute them as basic Sedt commands.
  147.  
  148.                 Look  for  a journal file with  the  same 
  149.             name  as  the  input  file  except for  the  file 
  150.             extention  .JOU.  If the journal file is  present 
  151.             Sedt will read all characters in the journal file 
  152.             as if they had been typed on the keyboard.   Sedt 
  153.             will create journal  files  for  all files edited 
  154.             and remove the journal  files  when  the  file is 
  155.             written  to  disk  or the  user  quits  the  edit 
  156.             session.    Journal files will not  recreate  the 
  157.             correct  file  if  you  have  moved data  between 
  158.             windows.    Window  changes  and  spawns  to  the 
  159.             operating system are disabled when recovering.
  160.  
  161.         Text is  entered at the cursor position.  Deletion of any 
  162.         character is done  by  placing the cursor to the right of 
  163.         the character and typing Delete.  The cursor can be moved 
  164.         around the text by using  the cursor keys.  At the end of 
  165.         the session Gold F or Exit  will  save  the file and exit 
  166.         from Sedt.
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195. Page 3
  196.  
  197.  
  198.  
  199.  
  200. Sedt Users Guide
  201. Version 2.0
  202.  
  203.  
  204.  
  205.                  Screen layout
  206.  
  207.         The  Sedt screen is divided into a number of fields.   It 
  208.     can display either one or two windows into your edit buffers.  In 
  209.     single window mode the layout is as follows:
  210.  
  211.         The top line on the screen (in reverse video) is a status 
  212.     line.   It  shows  you  the  contents  and status of your current 
  213.     buffer.
  214.  
  215.                 The first character  on the status line indicates 
  216.         whether  there have been  changes  to  the  file  in  the 
  217.         current edit buffer.  An  *  indicates  that changes have 
  218.         been made, a space that the file is unchanged.
  219.  
  220.                 The second field indicates what the  output  file 
  221.         for the current buffer is.  The contents of the buffer is 
  222.         initially the disk contents of the input file.
  223.  
  224.             The  third    field    on    PC   implementations 
  225.         (Column=<Number>) tells you  what  column  the  cursor is 
  226.         positioned at.
  227.  
  228.                 The third (fourth on  PC  implementations)  field 
  229.         (Line=<Number>) tells you what line  number in the buffer 
  230.         Sedt is positioned at,
  231.  
  232.                 The  final  field  (Buf=<Number>)  tells you  the 
  233.         number of the current buffer.
  234.  
  235.         The second line is the ruler line.   It shows the current 
  236.     settings of left and right margins, the word  wrap margin and the 
  237.     tab stop settings.  L is the position of  the  left margin, W the 
  238.     position of the word wrap margin if fixed, A the  position of the 
  239.     word wrap margin if automatic, R the position of the right margin 
  240.     with ragged right margin, J the position of the right margin with 
  241.     right justified margin,  I the current indentation setting, and T 
  242.     tab stop settings.   If  a position marks several of the above it 
  243.     will only show one.   The  order of precedence is W/A over L over 
  244.     R/J over I over T.
  245.  
  246.         The  next 20 lines are in  normal  video  and  display  a 
  247.     window into the current buffer.  All  text is shown exactly as it 
  248.     is and how will be written to the  file.  The cursor is always on 
  249.     line 12 and shows the current position within the  buffer.   If a 
  250.     select  region is active the region between the select point  ant 
  251.     the cursor will be shown in reverse video.
  252.  
  253.         The  23'd,  or second line from the bottom, is in reverse 
  254.     video  and  separates  the text from the message line.  This line 
  255.     contains status  information.    The  first  indicator  shows the 
  256.     default direction for moves.  The second whether typed characters 
  257.  
  258.  
  259.  
  260.  
  261. Page 4
  262.  
  263.  
  264.  
  265.  
  266. Sedt Users Guide
  267. Version 2.0
  268.  
  269.  
  270.  
  271.     will be inserted or  replace  existing  text.    The  last  shows 
  272.     whether  Sedt is currently learning  keystrokes  or  executing  a 
  273.     learned keystroke sequence.
  274.  
  275.         The 24'th, or bottom line, is  the  message  line.  It is 
  276.     used to display informational and error messages,  and  also  for 
  277.     accepting command arguments.
  278.  
  279.         In two window mode a second status line  is added on line 
  280.     14.  It has the same format as line 1 and shows the status of the 
  281.     buffer displayed in lines 15 through 22.  The current  buffer  is 
  282.     displayed  in lines 3 through 13.  The Cursor position is  always 
  283.     on line 8.
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327. Page 5
  328.  
  329.  
  330.  
  331.  
  332. Sedt Users Guide
  333. Version 2.0
  334.  
  335.  
  336.  
  337.                   Typing text
  338.  
  339.         Text is  entered  at  the  cursor  position by typing the 
  340.     desired data.   Text  keys are all the printable ASCII characters 
  341.     plus Return and Space.    All  other  keys  cause either an error 
  342.     message or make Sedt execute a series of commands programmed into 
  343.     the key.  Sedt supports the  full  multinational  character  set, 
  344.     either  through  compose sequences or through the  country  kits.  
  345.     Sedt can be in either replace or insert  move.    
  346.  
  347.         In replace  mode typed text will overwrite existing text.  
  348.     In insert mode  (the  default) the existing text will be moved to 
  349.     make room for the  typed.  If a Tab character is replaced it will 
  350.     be expanded to spaces before the replacement.  The effect of this 
  351.     is that text to the right remains unchanged.  Replace/insert mode 
  352.     is toggled with Gold O and is indicated on the mode line.
  353.  
  354.         Tab will  insert tab and space characters in the text and 
  355.     position the cursor at the indentation setting (indicated with an 
  356.     I on the ruler  line)  if  it  is  to  the  right  of the cursor, 
  357.     otherwise at the next tab  setting  on  the ruler.  Note that the 
  358.     tabs are soft tabs set by default  at  columns 9, 17, etc.!  Sedt 
  359.     assumes  that  the  hardware  tabs  are  set at  eight  character 
  360.     intervals  at  the default positions.  Using soft tabs means that 
  361.     text can be tabulated at any column independently of the hardware 
  362.     tab stops, and will print correctly on most printers.
  363.  
  364.         Return will insert an LF (ASCII 12) character in the text 
  365.     and place the cursor at the appropriate left margin.  If you wish 
  366.     to search for a string including a  new line insert an LF (F13 or 
  367.     ^J) in the search string.  When the  file is writtenm to disk the 
  368.     LF  will  be  replaced  by  the correct line terminator  for  the 
  369.     operating system.
  370.  
  371.         Gold  Keypad  0  will  insert  a new line in front of the 
  372.     current cursor position. No indentation will be done.
  373.  
  374.         To insert  an  arbitrary  ASCII character enter Gold, the 
  375.     decimal value of the character and Gold Keypad 3.
  376.  
  377.         Typing  Escape twice,  or  F11,  will  insert  an  escape 
  378.     character in the text.
  379.  
  380.         If the end of line is to the right of the physical screen 
  381.     margin, Sedt will display a  reverse  video  >  in  the rightmost 
  382.     column.
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393. Page 6
  394.  
  395.  
  396.  
  397.  
  398. Sedt Users Guide
  399. Version 2.0
  400.  
  401.  
  402.  
  403.                 Commands
  404.  
  405.         Commands are coded into ASCII control  characters and the 
  406.     function keys on the keyboard. 
  407.  
  408.         PF1 (Gold) has a special meaning.   It does not cause any 
  409.     commands to be executed, but modifies the effect  of the next key 
  410.     to be typed.  When in this text the  term  Gold  is used before a 
  411.     key  it means that you have to type PF1 before  typing  the  key.  
  412.     Gold  also  causes  the normal ASCII characters to be modified to 
  413.     execute Sedt commands instead of entering text.
  414.  
  415.         Some commands require arguments from the keyboard.  These 
  416.     commands will prompt for the argument and wait for you to type it 
  417.     in.  As you type the  argument  it  is  echoed  at the end of the 
  418.     prompt  on the message line.  Argument  entry  is  terminated  by 
  419.     typing Return, Do or Enter.  Mistakes can  be corrected by moving 
  420.     the  cursor  with the Right and Left Arrow keys  and  deleting  a 
  421.     character  at  a  time  with  Delete  (above Return) or inserting 
  422.     characters  at  the  cursor  position.  The entire command can be 
  423.     cancelled by typing Control U. 
  424.  
  425.         Most commands can be repeated by typing  Gold,  inputting 
  426.     the number of times the command should be  repeated,  and the key 
  427.     sequence for the command.  While entering the number  you  see it 
  428.     echoed on the message line.  Mistakes can be corrected  by typing 
  429.     Rubout to delete a character.  Entry of the number can be aborted 
  430.     by typing Control U.
  431.  
  432.         Most direction dependent commands can have the  direction 
  433.     set by entering Gold + or Gold > for forward, or Gold - or Gold < 
  434.     for reverse before typing the key.  After typing Gold + or Gold - 
  435.     you can enter a count exactly as described above.
  436.  
  437.         If you have entered a partial command but do not  wish to 
  438.     continue,  you can type one of the dead keys:  Resume,  Enter  or 
  439.     Main Screen.
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459. Page 7
  460.  
  461.  
  462.  
  463.  
  464. Sedt Users Guide
  465. Version 2.0
  466.  
  467.  
  468.  
  469.                   Help
  470.  
  471.         To  get  help within an edit session type Gold H, Help or 
  472.     PF2.    Sedt  will  display a help screen and ask you whether you 
  473.     want to see the next help screen.  Typing Return will display the 
  474.     next help screen.   Typing Space will return to the edit session.  
  475.     The  help  text is  found  in  a  disk  file  (CP/M  and  MS/DOS:  
  476.     Sedthelp.Txt.  VMS:  Sedt$Help:).    If  the  help file cannot be 
  477.     found an error message will be displayed.
  478.  
  479.         Return or Next Screen will move  you  forward through the 
  480.     help screens.  Backspace or Prev Screen  wil  move  you backward, 
  481.     and space or Exit will return to the edit session.
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525. Page 8
  526.  
  527.  
  528.  
  529.  
  530. Sedt Users Guide
  531. Version 2.0
  532.  
  533.  
  534.  
  535.                  Moving
  536.  
  537.         The  most  simple  moving commands to use are  the  arrow 
  538.     keys.  Left arrow moves the cursor one character backwards in the 
  539.     text.  Right arrow moves one character forward in the  text.   Up 
  540.     arrow  moves one line up and attempts to keep the cursor  at  the 
  541.     same relative position within the line.  If the line is too short 
  542.     the  cursor  will  be positioned at the end of the line.  If  the 
  543.     character at the previous  line  has a representation longer than 
  544.     one character (Tab or other  control  characters) the cursor will 
  545.     be positioned at the end of the representation.  Down arrow works 
  546.     as up arrow, but moves one line down.
  547.  
  548.         Previous Screen moves 10 lines up the text and places the 
  549.     cursor at the start of the line.  Next Screen moves 10 lines down 
  550.     in the text and places the cursor at the beginning of the line.
  551.  
  552.         Gold T moves the cursor to the top of  the  text.  Gold B 
  553.     moves the cursor to the bottom of the text.
  554.  
  555.         More complicated moving commands are:
  556.  
  557.         Backspace (F12)    Moves to the previous beginning of line
  558.  
  559.     *    Find        Moves  to  the  next  occurrence  of  the 
  560.                 current search string.
  561.  
  562.     *    Keypad 0    Moves to the next beginning of line.
  563.  
  564.     *    Keypad 1    Moves one word.
  565.  
  566.     *    Keypad 2    Moves to the next end of line.
  567.  
  568.     *    Keypad 3    Moves one character.
  569.  
  570.     *    Keypad 7    Moves one page.
  571.  
  572.     *    Keypad 8    Moves one paragraph.
  573.  
  574.     *    PF3        Moves  to  the  next  occurrence  of  the 
  575.                 current search string.
  576.  
  577.     *    Gold Find    Moves  to  the  next  occurrence  of  the 
  578.                 current  search  string  which is entered 
  579.                 as a  command  argument  on  the  message 
  580.                 line.  Entering  an empty argument causes 
  581.                 Sedt to use the old search string.
  582.  
  583.         Gold Up Arrow    Moves to the top of the text.
  584.  
  585.         Gold Down Arrow    Moves to the end of the text.
  586.  
  587.  
  588.  
  589.  
  590.  
  591. Page 9
  592.  
  593.  
  594.  
  595.  
  596. Sedt Users Guide
  597. Version 2.0
  598.  
  599.  
  600.  
  601.         Gold Keypad 4    Moves to the end of the text.
  602.  
  603.         Gold Keypad 5    Moves to the start of the text.
  604.  
  605.     *    Gold PF3    Moves  to  the  next  occurrence  of  the 
  606.                 current  search  string which is  entered 
  607.                 as  a  command  argument  on the  message 
  608.                 line.   Entering an empty argument causes 
  609.                 Sedt to use the old search string.
  610.  
  611.         Keypad 4    Causes  commands  marked  by  *  to  move 
  612.                 backwards in the text.
  613.  
  614.         Keypad 5    Causes  commands  marked  by  *  to  move 
  615.                 forward in the text.
  616.  
  617.         Gold Left Arrow    Scrolls continuously up through the  text 
  618.                 until a key is typed. 
  619.  
  620.         Gold Right Arrow Scrolls  continuously  down  through the 
  621.                 text  until  a  key is typed.  (Enter  is 
  622.                 dead key)
  623.  
  624.         To undo a move you type Gold U as the next command.
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657. Page 10
  658.  
  659.  
  660.  
  661.  
  662. Sedt Users Guide
  663. Version 2.0
  664.  
  665.  
  666.  
  667.                      Marks
  668.  
  669.         Marks are points in  the text that you may want to return 
  670.     to.  You can mark  a  point  in  the  text  by entering Gold, the 
  671.     number of the mark to be  set,  and  Gold  M.   You  can set mark 
  672.     number 1 by entering Gold M.
  673.  
  674.         To return to a mark you enter  Gold,  the  number  of the 
  675.     mark, and .  (dot).  You can  return to mark 1 by entering Gold .  
  676.     (dot).
  677.  
  678.         Valid mark numbers are in the range 1 to 10.
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723. Page 11
  724.  
  725.  
  726.  
  727.  
  728. Sedt Users Guide
  729. Version 2.0
  730.  
  731.  
  732.  
  733.                  Deleting text
  734.  
  735.         The  character  immediatly before the cursor position may 
  736.     be deleted  with  Delete.  The word immediatly before the current 
  737.     position may be  deleted  with  Line  Feed (F13).  The line up to 
  738.     the current position may be deleted with Control U.
  739.  
  740.         The character after the  current position is deleted with 
  741.     Keypad , (comma), the next  word with Keypad -, and the next line 
  742.     with PF4.
  743.  
  744.         Gold Keypad 2 deletes up to the end of the current line.
  745.  
  746.         To delete arbitrary text move to  one end of the text and 
  747.     enter either Select or Keypad ., then  move  to  the other end of 
  748.     the text and enter either Remove or Keypad  6.   PF4  will append 
  749.     the deleted text to the paste buffer.
  750.  
  751.         Gold  Remove  will  move  the  text  between  the current 
  752.     position  and  the  select point into the paste buffer, but  will 
  753.     not  delete  the  text.  This command is useful for copying  text 
  754.     from one position to another.
  755.  
  756.         The select  point  may  be  cancelled  with Gold Keypad .  
  757.     (dot) or Gold Select.
  758.  
  759.         It is not  necessary to delete a character to change it's
  760.     case.  Simply place  the cursor over the character and enter Gold 
  761.     Keypad 1.  If a  select  point  is  active the whole select range 
  762.     will change case, otherwise, if the  last  command  was  a search 
  763.     command the found string will change case.
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789. Page 12
  790.  
  791.  
  792.  
  793.  
  794. Sedt Users Guide
  795. Version 2.0
  796.  
  797.  
  798.  
  799.                    Undeletion
  800.  
  801.         Any deleted text can be undeleted until  a  similar  type 
  802.     of text is deleted.  Gold Keypad ,  (comma)  undeletes  the  last 
  803.     deleted  character,  Gold  Keypad  -  undeletes  the last deleted 
  804.     word, and Gold PF4 undeletes the last deleted line.
  805.  
  806.         Insert  Here  or  Gold Keypad 6 undelete the paste buffer 
  807.     which is filled with Remove, Gold Remove or Keypad 6.
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855. Page 13
  856.  
  857.  
  858.  
  859.  
  860. Sedt Users Guide
  861. Version 2.0
  862.  
  863.  
  864.  
  865.              Search and substitute
  866.  
  867.         Gold  Keypad  9  accepts a search and a substitute string 
  868.     and replaces  the  next  occurrence of the search string with the 
  869.     substitute string.   If  an  empty argument is entered either for 
  870.     the search  or  substitute  strings  the old values will be used.  
  871.     If the cursor  is  placed  at  the beginning of the search string 
  872.     the substitution will be done if this occurrence.
  873.  
  874.         Keypad 9 replaces the  next  occurrence  of  the  current 
  875.     search string  by the substitute string.  If the cursor is placed 
  876.     at the beginning  of  the  search string the substitution will be 
  877.     done if this occurrence.
  878.  
  879.         To undo a substitution type  Gold  U as the next command.  
  880.     Gold U will insert the search  string  exactly  as  you  typed it 
  881.     after deleting the substitute string.
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921. Page 14
  922.  
  923.  
  924.  
  925.  
  926. Sedt Users Guide
  927. Version 2.0
  928.  
  929.  
  930.  
  931.                   Edit buffers
  932.  
  933.         Sedt  can concurrently edit up to four  different  files.  
  934.     Each file is contained in a buffer.   One of these is the current 
  935.     buffer on which all commands have effect.  F17  to F20 change the 
  936.     current  buffer.  F17 makes buffer 0 the current, F18  buffer  1, 
  937.     F19 buffer 2, and F20 buffer 3.
  938.  
  939.         Whenever  F17  to  F20  are entered Sedt will change into 
  940.     two window  mode  with  the  previously  current  buffer contents 
  941.     displayed in the  lower  window  and  the  current  buffer in the 
  942.     upper window.  If  the  current  and previous buffer are the same 
  943.     the lower window will not  reflect  changes  in the buffer unless 
  944.     the screen is refreshed with a  Control  W,  which causes the two 
  945.     window contents to become identical.
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987. Page 15
  988.  
  989.  
  990.  
  991.  
  992. Sedt Users Guide
  993. Version 2.0
  994.  
  995.  
  996.  
  997.                     Windows
  998.  
  999.         Gold D will toggle between one and  two window mode.  The 
  1000.     upper  window  always contains the current buffer and  the  lower 
  1001.     window the previous buffer.
  1002.  
  1003.         Gold  W  will  toggle  between 80 and 132 column  display 
  1004.     format.
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053. Page 16
  1054.  
  1055.  
  1056.  
  1057.  
  1058. Sedt Users Guide
  1059. Version 2.0
  1060.  
  1061.  
  1062.  
  1063.                 Session control
  1064.  
  1065.         Gold  F  causes the current buffer to be written to  it's 
  1066.     output file.  If all buffers have been written to disk  Sedt will 
  1067.     exit.   If  there  are  still unwritten buffers Sedt will ask you 
  1068.     whether you  intend  to terminate the edit session without saving 
  1069.     the buffers.
  1070.  
  1071.         Gold S  is used to save the contents of the buffer in any 
  1072.     file and continue  the  edit  session.   The filename is accepted 
  1073.     from the keyboard.  If no filename is entered the buffer is saved 
  1074.     into the buffer's output file.
  1075.  
  1076.         Interrupt will save the contents  of  the  buffer  in the 
  1077.     output file if any modifications have been made to the buffer.
  1078.  
  1079.         Gold E causes the current buffer  to be loaded with a new 
  1080.     file.  If the current buffer holds  an unsaved file Sedt will ask 
  1081.     you whether you want to save the old  file.  If you confirm, Sedt 
  1082.     will save the old file in the output file  before loading the new 
  1083.     file.
  1084.  
  1085.         Gold  Q or Cancel will terminate the edit session if  all 
  1086.     buffers  have  been  written  to  disk.  If unsaved buffers exist 
  1087.     Sedt will ask for confirmation before exiting.
  1088.  
  1089.         Gold Z clears the current buffer.
  1090.  
  1091.         Gold G  will load the contents of a file into the current 
  1092.     buffer at the current cursor position.
  1093.  
  1094.         Control W will refresh the screen.
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119. Page 17
  1120.  
  1121.  
  1122.  
  1123.  
  1124. Sedt Users Guide
  1125. Version 2.0
  1126.  
  1127.  
  1128.  
  1129.                 Word processing
  1130.  
  1131.         The basic text  formatting commands allow Sedt to be used 
  1132.     as a simple word  processing  system.   The  format is controlled 
  1133.     with the ruler displayed on line 2 of the display.
  1134.  
  1135.         It is convenient to have  commonly  used  rulers saved on 
  1136.     disk, ready to be used by  typing  a  4  character sequence.  For 
  1137.     example, ruler 0 could contaiin a ruler with the margin at column 
  1138.     1, ruler 1 one with the margin indented  one  tab  stop,  ruler 2 
  1139.     with the margin indented two tab stops, and so on.
  1140.  
  1141.         Gold R allows you to  change  the ruler.  The cursor will 
  1142.     be positioned at the first column  of  line 2 after which you can 
  1143.     modify the layout with the following commands.
  1144.  
  1145.         Right arrow    Moves  the  cursor  one  character to the 
  1146.                 right.  The column number can be read  on 
  1147.                 the status line.
  1148.  
  1149.         Left arrow    Moves the cursor one column to the left.
  1150.  
  1151.         -         Removes  a   tab   stop  at  the  current 
  1152.                 position.
  1153.  
  1154.         Tab        Moves to next tab stop
  1155.  
  1156.         Backspace    Moves to column 1
  1157.  
  1158.         T        Inserts  a  tab   stop   at  the  current 
  1159.                 position
  1160.  
  1161.         L        Sets  the  left  margin  to  the  current 
  1162.                 position.  When a Return  is  entered the 
  1163.                 cursor  will  be  indented  to  the  left 
  1164.                 margin.
  1165.  
  1166.         R        Sets  the  right  margin  to  the current 
  1167.                 position.    If   the   right  margin  is 
  1168.                 reached when entering  text,  a  new line 
  1169.                 will  be entered before  the  word  being 
  1170.                 typed and the word will  be  indented  to 
  1171.                 the word wrap margin.
  1172.  
  1173.         J        Sets  the  right  margin  to the  current 
  1174.                 position.    If   the   right  margin  is 
  1175.                 reached when  entering  text,  a new line 
  1176.                 will be entered  before  the  word  being 
  1177.                 typed and the word  will  be  indented to 
  1178.                 the word wrap margin after  adjustment of 
  1179.                 the text to the right margin.
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185. Page 18
  1186.  
  1187.  
  1188.  
  1189.  
  1190. Sedt Users Guide
  1191. Version 2.0
  1192.  
  1193.  
  1194.  
  1195.         W        Sets the word wrap margin to  the current 
  1196.                 position.    W   fixes  the   word   wrap 
  1197.                 position.
  1198.  
  1199.         A        Sets   automatic   margin  control.   The 
  1200.                 margin is  always  the leftmost non-blank 
  1201.                 position on the current line.
  1202.  
  1203.         I        Sets   the  indentation  at  the  current 
  1204.                 position.
  1205.  
  1206.         Space        Removes all  formatting  controls  at the 
  1207.                 current position.
  1208.  
  1209.         Digit        Load  saved  ruler   number  digit.   The 
  1210.                 rulers   are  saved  in   the   directory 
  1211.                 defined   by  environment  variable  Sedt 
  1212.                 under   MS/DOS   and   in  the  directory 
  1213.                 pointed  to  by the logical name Sedt$Dir 
  1214.                 under  VMS.   The name of the ruler  file 
  1215.                 is  RulerN.Txt  where  N if the number of 
  1216.                 the ruler.
  1217.  
  1218.         Gold Digit    Save current ruler  in saved ruler number 
  1219.                 digit. 
  1220.  
  1221.         Return        Returns from  ruler  definition  mode  to 
  1222.                 normal edit mode.
  1223.  
  1224.         If more than  one  ruler  setting  is commonly used, much 
  1225.     time can be saved  by storing the settings in rulers 0 through 9.  
  1226.     Ruler 0 is loaded by  default  and any of the other rulers can be 
  1227.     called up with four key strokes:  Gold R Digit Return.
  1228.  
  1229.         Gold Keypad 8 will reformat from  the current position to 
  1230.     the end of the paragraph.
  1231.  
  1232.         Gold C will center the text on  the  current line between 
  1233.     the left and right margins.
  1234.  
  1235.         Gold P will insert a page mark at the current position.
  1236.  
  1237.         Control P will print the current buffer on  a  file.  The 
  1238.     file name is prompted for.
  1239.  
  1240.         Gold  _  will  insert a - and a space  and  reformat  the 
  1241.     paragraph.   This  command is used if a hyphenation will  improve 
  1242.     the formatting of the paragraph.
  1243.  
  1244.         Control  T  will  adjust the text within the select range 
  1245.     by a  tab stop.  The direction of adjustment is determined by the 
  1246.     current direction or  by entering Gold + or Gold - before control 
  1247.  
  1248.  
  1249.  
  1250.  
  1251. Page 19
  1252.  
  1253.  
  1254.  
  1255.  
  1256. Sedt Users Guide
  1257. Version 2.0
  1258.  
  1259.  
  1260.  
  1261.     T.  By using  a count with Gold Digit ..., you can adjust by more 
  1262.     than one tab stop.
  1263.  
  1264.         Gold Enter will swap characters.   Place  the cursor over 
  1265.     the first character to swap.   Typing  Gold Enter will "pull" the 
  1266.     character to the right of the next character.
  1267.  
  1268.         Additional Options will call the text formatting  program 
  1269.     TXTF to produce a formatted file of type  .LST.   TXTF  is in the 
  1270.     public domain and formats using wordstar type .  commands.
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317. Page 20
  1318.  
  1319.  
  1320.  
  1321.  
  1322. Sedt Users Guide
  1323. Version 2.0
  1324.  
  1325.  
  1326.  
  1327.                  Margin Control
  1328.  
  1329.         The  ruler  line controls both left  and  right  margins.  
  1330.     Several options exist for controlling the margins.
  1331.  
  1332.         No margin control is done if L,  W,  R  and  I are set in 
  1333.     column 1.  Lines can be infinitely long  and the cursor is always 
  1334.     positioned in column 1 after a Return is typed.
  1335.  
  1336.         If L is set in a column different from  1 and W is set in 
  1337.     column  1  a  Return  will  cause  Sedt  to indent to the  column 
  1338.     defined by L.
  1339.  
  1340.         If  I is set in a column different from 1 and the  cursor 
  1341.     is positioned to the left of the column a Tab will indent to  the 
  1342.     column defined by I.
  1343.  
  1344.         The left and right margin controls work as follows:
  1345.  
  1346.         W and R:
  1347.  
  1348.             When a non-blank character is typed to the  right 
  1349.             of R Sedt will insert a Return in  front  of  the 
  1350.             first word that extends to the  right  of  R  and 
  1351.             indent to the W column.  The  effect will be that 
  1352.             text  will be filled between W and R.   The  fill 
  1353.             command,  Gold  Keypad  8 will fill text from the 
  1354.             current cursor position to the end of the current 
  1355.             paragraph.   Text  to  the left os W will be left 
  1356.             unaffected.
  1357.  
  1358.         W and J:
  1359.  
  1360.             When a non-blank  character is typed to the right 
  1361.             of J  Sedt  will  change  the spacing between the 
  1362.             current position and  W  so  that  spacing  after 
  1363.             punctuation  characters  will be  exactly  2  and 
  1364.             after  non-punctuation characters will be  1.   A 
  1365.             return  will  then be inserted before  the  first 
  1366.             word that extends to the right of  J, after which 
  1367.             spaces  will  be inserted between words until the 
  1368.             right  margin  is  justified  to  J.  Finally the 
  1369.             wrapped word will  be indented to W.  Text to the 
  1370.             left of W will be left unaffected.
  1371.  
  1372.         A and R:
  1373.  
  1374.             When a non-blank character  is  inserted  to  the 
  1375.             right of R a return  will be inserted in front of 
  1376.             the first word that extends to the  right  of  R.  
  1377.             The text after the return will be indented to the 
  1378.             same level as the line just terminated.
  1379.  
  1380.  
  1381.  
  1382.  
  1383. Page 21
  1384.  
  1385.  
  1386.  
  1387.  
  1388. Sedt Users Guide
  1389. Version 2.0
  1390.  
  1391.  
  1392.  
  1393.  
  1394.         A and J:
  1395.  
  1396.             When a non-blank  character is typed to the right 
  1397.             of  J  Sedt  will  change the spacing between all 
  1398.             words to the left of the current position so that 
  1399.             spacing  after  punctuation  characters  will  be 
  1400.             exactly  2 and after  non-punctuation  characters 
  1401.             will be 1.  A return will then be inserted before 
  1402.             the first word that extends to  the  right  of J, 
  1403.             after which spaces will be inserted between words 
  1404.             until  the  right margin is justified to the same 
  1405.             level as the line just terminated.
  1406.  
  1407.         W to the right of, or at J/R:
  1408.  
  1409.             No filling or justification will occur.
  1410.  
  1411.         A to the right of or at J/R:
  1412.  
  1413.             When  a  Return  is  typed  the  cursor  will  be 
  1414.             indented to the  same  level  as  the  line  just 
  1415.             terminated.  If the  terminated line is empty the 
  1416.             indentation  level  will remain unchanged.   This 
  1417.             mode   is   particularly  useful  for  structured 
  1418.             programming.
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449. Page 22
  1450.  
  1451.  
  1452.  
  1453.  
  1454. Sedt Users Guide
  1455. Version 2.0
  1456.  
  1457.  
  1458.  
  1459.                   Programming
  1460.  
  1461.         Control  A will set the indentation level to the  current 
  1462.     column.  Typing a Tab to the left of the  indentation  level will 
  1463.     indent  the cusor to the current level.  Control D will  decrease 
  1464.     the indentation  level  and  control  E  will  increase  it.  The 
  1465.     current indentation level  is indicated on the ruler line with an 
  1466.     I.
  1467.  
  1468.         If  automatic margin  control  is  in  effect  (an  A  is 
  1469.     displayed on the ruler line)  a  return will make Sedt indent the 
  1470.     cusor to the same level as the line just terminated.
  1471.  
  1472.         Indentation of text can  be  changed  to  a tab stop with 
  1473.     the control T key, which  will  adjust  the  text  either left or 
  1474.     right by a number of tab  stops.   To adjust text to the next tab 
  1475.     stop to the right enter Gold +  control  T.   To adjust left type 
  1476.     Gold - control T.  If you desire  to  adjust by more than one tab 
  1477.     stop type the number of tab stops to adjust  after  the Gold + or 
  1478.     Gold -.
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515. Page 23
  1516.  
  1517.  
  1518.  
  1519.  
  1520. Sedt Users Guide
  1521. Version 2.0
  1522.  
  1523.  
  1524.  
  1525.                  Defining keys
  1526.  
  1527.         Control  K will allow you to define keys differently from 
  1528.     the  default  settings.   When  the Key:  prompt appears type the 
  1529.     key you  wish  to  define.  When the As:  prompt appears type the 
  1530.     definition of the  key  either  by typing the sequence of command 
  1531.     keys to be executed  or  by entering the basic Sedt commands.  If 
  1532.     the string is terminated with  a  .   the  key  will  take effect 
  1533.     immediatly when typed,  otherwise  it  will  be  stacked  up  for 
  1534.     execution when a key  with  a  .  at the end of the definition is 
  1535.     struck.
  1536.  
  1537.         Gold  control  I  will insert a key definition  into  the 
  1538.     current buffer.  When the Key:  prompt appears  type  the key you 
  1539.     want to save the definition of.
  1540.  
  1541.         Gold  control  L  will  load  the contents of the current 
  1542.     buffer  into  a  key  definition.   When the Key:  prompt appears 
  1543.     type the key you want to load the definition into.
  1544.  
  1545.         If  you   type   Gold   F17  Sedt  will  save  subsequent 
  1546.     keystrokes for reexecution  later.   The  save  is  terminated by 
  1547.     typing Control Z.   To  execute the saved sequence type Gold F18.  
  1548.     Be sure you do not  type  Gold  F18  while saving keystrokes.  If 
  1549.     you do this and execute the  keystrokes  later with Gold F18 Sedt 
  1550.     will loop endlessly.    You  can  enter  a  count  as  with other 
  1551.     commands, but note that  execution  of  learned  sequences is not 
  1552.     stopped on errors.
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581. Page 24
  1582.  
  1583.  
  1584.  
  1585.  
  1586. Sedt Users Guide
  1587. Version 2.0
  1588.  
  1589.  
  1590.  
  1591.              Miscellaneous commands
  1592.  
  1593.         Gold Keypad 7 or Gold Do accepts  a  string of basic Sedt 
  1594.     commands from the keyboard and executes them.
  1595.  
  1596.         Gold  X  will  execute basic Sedt commands from  a  file.  
  1597.     Sedt will prompt for the file name.
  1598.  
  1599.         Do  will  spawn  an operating system command.  Sedt  will 
  1600.     prompt for the command to be executed.  Under VMS  or  MS/DOS  an 
  1601.     empty string will  spawn  to  the  command  language interpreter.  
  1602.     Upon return to Sedt  you  will be prompted for a character before 
  1603.     the  screen  is  refreshed unless  you  spawned  to  the  command 
  1604.     language interpreter.
  1605.  
  1606.         Gold  F4  will  load the paste buffer from a file.   Sedt 
  1607.     will prompt for the file name.
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647. Page 25
  1648.  
  1649.  
  1650.  
  1651.  
  1652. Sedt Users Guide
  1653. Version 2.0
  1654.  
  1655.  
  1656.  
  1657.               Quick command guide
  1658.  
  1659.  
  1660.                      Moving
  1661.  
  1662.     Control H (Backspace)    Goto line start
  1663.     Gold .            Goto mark
  1664.     Gold B            Goto end of buffer
  1665.     Gold T            Goto start of buffer
  1666.     F12(BS)            Goto beginning of line
  1667.     Find            Goto next occurrence of search string
  1668.     Prev Screen        Go 10 lines up
  1669.     Next Screen        Go 10 lines down
  1670.     Up Arrow        Go 1 line up vertically
  1671.     Left Arrow        Go 1 character back
  1672.     Down Arrow        Go 1 line down vertically
  1673.     Right Arrow        Go 1 character forward
  1674.     Keypad 0        Goto next line beginning
  1675.     Keypad 1        Goto next word
  1676.     Keypad 2        Goto next end of line
  1677.     Keypad 3        Goto next character
  1678.     Keypad 7        Goto next page
  1679.     Keypad 8        Goto next paragraph
  1680.     PF3            Goto next occurrence of search string
  1681.     Gold Find        Goto next occurence of string
  1682.     Gold Up Arrow        Goto start of buffer
  1683.     Gold Left Arrow        Go backwards until key struck
  1684.     Gold Down Arrow        Goto end of buffer
  1685.     Gold Right Arrow    Go forward until key struck
  1686.     Gold Keypad 4        Goto end of buffer
  1687.     Gold Keypad 5        Goto beginning of buffer
  1688.     Gold PF3        Goto next occurrence of string
  1689.  
  1690.                                        Insertion
  1691.  
  1692.     Control I (Tab)        Insert a tab character
  1693.     Control L        Insert a form feed character
  1694.     Control M (Return)    Insert a carriage return
  1695.     Escape (twice)        Insert an escape character
  1696.     Gold G            Include file at current position
  1697.     Gold O            Toggle insert/replace mode
  1698.     Gold P            Insert a form feed character
  1699.     F11(ESC)        Insert an escape character
  1700.     Insert Here        Paste
  1701.     Gold Keypad 0        Open line
  1702.     Gold Keypad 3        Insert ASCII character
  1703.  
  1704.                                         Deletion
  1705.  
  1706.     Control J (Line feed)    Delete to beginning of word
  1707.     Control U        Delete to beginning of line
  1708.     Rubout            Delete previous character
  1709.  
  1710.  
  1711.  
  1712.  
  1713. Page 26
  1714.  
  1715.  
  1716.  
  1717.  
  1718. Sedt Users Guide
  1719. Version 2.0
  1720.  
  1721.  
  1722.  
  1723.     Gold Z            Clear buffer
  1724.     F13(LF)            Delete to beginning of word
  1725.     Remove            Cut
  1726.     Keypad 6        Cut
  1727.     Keypad ,        Delete character forward
  1728.     Keypad -        Delete word forward
  1729.     PF4            Delete line forward
  1730.     Gold Keypad 2        Delete to end of line
  1731.  
  1732.                                        Undeletion
  1733.  
  1734.     Gold Keypad 6        Undelete paste string
  1735.     Gold Keypad ,        Undelete character
  1736.     Gold Keypad -        Undelete word
  1737.     Gold PF4        Undelete Line
  1738.  
  1739.                                      Miscellaneous
  1740.  
  1741.     Control A        Set indentation level
  1742.     Control D        Decrease indentation level
  1743.     Control E        Increase indentation level
  1744.     Control K        Define key
  1745.     Control P        Print contents of buffer
  1746.     Control T        Adjust select range by a tab stop
  1747.     Control W        Refresh display
  1748.     Gold control I        Save key definition in buffer
  1749.     Gold control L        Load key definition from buffer
  1750.     Gold +            Set direction for next command to forward
  1751.     Gold -            Set direction for next command to reverse
  1752.     Gold <            Set direction for next command to reverse
  1753.     Gold >            Set direction for next command to forward
  1754.     Gold C            Center line
  1755.     Gold D            Toggle between one and two window mode
  1756.     Gold E            Edit new file in current buffer
  1757.     Gold F            Save current buffer and exit
  1758.     Gold H            Help
  1759.     Gold M            Set mark
  1760.     Gold O            Toggle insert/replace mode
  1761.     Gold Q            Exit without saving current buffer
  1762.     Gold R            Enter ruler definition mode
  1763.     Gold S            Save contents of buffer
  1764.     Gold U            Undo last command if possible
  1765.     Gold W            Toggle between 132 and 80 character screen
  1766.     Gold X            Execute Sedt commands from file
  1767.     Gold _            Insert a hyphen and reindent paragraph
  1768.     F4            Append select range to paste buffer
  1769.     Interrupt        Save contents of buffer
  1770.     Resume            Dead key
  1771.     Cancel            Quit without saving buffer
  1772.     Main Screen        Dead key
  1773.     Exit            Save buffer and exit
  1774.     Help            Help
  1775.  
  1776.  
  1777.  
  1778.  
  1779. Page 27
  1780.  
  1781.  
  1782.  
  1783.  
  1784. Sedt Users Guide
  1785. Version 2.0
  1786.  
  1787.  
  1788.  
  1789.     Do            Execute operating system command
  1790.     F17            Select buffer 0
  1791.     F18            Select buffer 1
  1792.     F19            Select buffer 2
  1793.     F20            Select buffer 3
  1794.     Select            Set select point at current position
  1795.     Keypad 4        Set default direction forward
  1796.     Keypad 5        Set default direction reverse
  1797.     Keypad 9        Substitute next occurrence of search string
  1798.     Keypad .        Set select point at current position
  1799.     PF2            Help
  1800.     Keypad Enter        Dead key
  1801.     Gold F4            Load paste buffer from file
  1802.     Gold Do            Execute Sedt command
  1803.     Gold F17        Load keystrokes into key until key pressed again
  1804.     Gold F18        Execute keystrokes loaded into key
  1805.     Gold Remove        Load paste buffer from select range without 
  1806.                 deleting
  1807.     Gold Select        Cancel select point
  1808.     Gold Keypad 1        Change case EDT style 
  1809.                 (Select range,found string,character)
  1810.     Gold Keypad 7        Execute Sedt command
  1811.     Gold Keypad 8        Fill or justify to end of paragraph
  1812.     Gold Keypad 9        Substitute one string by another
  1813.     Gold Keypad .        Cancel select point
  1814.     Gold Keypad Enter    Swap characters
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845. Page 28
  1846.  
  1847.  
  1848.  
  1849.  
  1850. Sedt Users Guide
  1851. Version 2.0
  1852.  
  1853.  
  1854.  
  1855.               Basic Sedt commands
  1856.  
  1857.         All Sedt functions are implemented by associating command 
  1858.     strings with keys  on  the keyboard.  The syntax and semantics of 
  1859.     these command strings are  given  below.    Typically, a standard 
  1860.     keyboard layout will only implement  a  subset  of  the  possible 
  1861.     functionality.  For complex editing functions it may be useful to 
  1862.     enter the commands directly through using Gold  Do or Gold Keypad 
  1863.     7.  To understand the command struicture fully  is it a good idea 
  1864.     to study a keypad definition file.
  1865.  
  1866.     Contitional command execution:
  1867.  
  1868.         ^C(<Commands>)    Execute  commands  in parentheses if  the 
  1869.                 buffer has been modified since last save.
  1870.  
  1871.         ^C(<Commands>|<Commands>)
  1872.                 Execute the  first set of commands if the 
  1873.                 buffer has been modified since last save.  
  1874.                 Execute the second set of commands if the 
  1875.                 buffer has not been modified.
  1876.  
  1877.         ^E(<Commands>)(<Commands>)
  1878.                 Execute the first set of commands.  If an 
  1879.                 error  occurs  in  this  command  string, 
  1880.                 execute the second set of commands.
  1881.  
  1882.         ^E(<Commands>)(<Commands>|<Commands>)
  1883.                 Execute the first set of commands.  If an 
  1884.                 error  occors  in  this  command  string, 
  1885.                 execute   the  second  set  of  commands.  
  1886.                 Otherwise   execute   the  third  set  of 
  1887.                 commands.
  1888.  
  1889.     Command structure
  1890.  
  1891.         {+|-}{<Count>}:<Command>{<Arguments>}
  1892.                 Performs an action within the editor
  1893.         {+|-}{<Count>}@<Entity>{<Arguments>}
  1894.                 Defines a range within the buffer
  1895.  
  1896.             Entities  that  are  not  command arguments cause 
  1897.         the current  position to move to the point defined by the 
  1898.         entity.
  1899.  
  1900.             Entities preceeded by  a  - always work backwards 
  1901.         from the current position.   When  preceeded  by a + they 
  1902.         always work forward from the  current position.  Unsigned 
  1903.         entotoes  work  forward  or backward depending  upon  the 
  1904.         current direction.
  1905.  
  1906.             An   entity  working  backward  starts  with  the 
  1907.  
  1908.  
  1909.  
  1910.  
  1911. Page 29
  1912.  
  1913.  
  1914.  
  1915.  
  1916. Sedt Users Guide
  1917. Version 2.0
  1918.  
  1919.  
  1920.  
  1921.         character  immediatly before the current cursor position.  
  1922.         When working  forward  the  entity  includes  the current 
  1923.         cursor position.
  1924.  
  1925.             Count normally causes  the  command  or entity to 
  1926.         be repeated.
  1927.  
  1928.             A  -  causes  the   command  or  entity  to  work 
  1929.         backwards in the buffer. 
  1930.  
  1931.             A  +  causes  the  command   or  entity  to  work 
  1932.         forwards in the buffer.
  1933.  
  1934.             Command sequences may be repeated by  following a 
  1935.         count  with the commands to be repeated  in  parenthesis.  
  1936.         If  count is zero the command sequence will  be  repeated 
  1937.         until an error occurs or :TI senses type ahead
  1938.  
  1939.     Entities
  1940.  
  1941.         @BB        Top of buffer
  1942.         @EB        End of buffer
  1943.         @EL        End of line
  1944.         @C        Character
  1945.         @F<Delimiter><String><Delimiter>
  1946.                 Start of next occurrence of <String>
  1947.         @L        Next beginning of line
  1948.         <Count>@M    Point number <Count>. Point 0 is the 
  1949.                 select point
  1950.         @N        Start of next occurrence of same search 
  1951.                 string
  1952.         @PAG        Start of next page
  1953.         @PAR        Start of next paragraph
  1954.         @SEN        Start of next sentence
  1955.         @SR        Select point
  1956.         @V        Same position within next line
  1957.         @W        Start of next word
  1958.  
  1959.     Commands
  1960.  
  1961.         :A        Make entities default forward
  1962.         :B        Make entities default backward
  1963.         :CC<Entity>    Change case within entity
  1964.         :CD<Entity>    Change to lower case within entity
  1965.         :CE        Changes case EDT style. Select range
  1966.                 if set, otherwise search string, else char
  1967.         <Count>:CH    Insert character with ASCII value <Count>
  1968.         :CL        Center text of current line
  1969.         :CM        Call the top level menu (Not supported)
  1970.         :CU<Entity>    Change to upper case within entity
  1971.         :D<Entity>    Delete entity
  1972.         :EAP<Entity>    Delete entity and append to delete buffer
  1973.  
  1974.  
  1975.  
  1976.  
  1977. Page 30
  1978.  
  1979.  
  1980.  
  1981.  
  1982. Sedt Users Guide
  1983. Version 2.0
  1984.  
  1985.  
  1986.  
  1987.         :FE<Delimiter><Name><Delimiter>
  1988.                 Edit file named <Name>
  1989.         :FG<Delimiter><Name><Delimiter>
  1990.                 Insert file named <Name> at current 
  1991.                 position
  1992.         :FS<Delimiter><Name><Delimiter>
  1993.                 Save current buffer in file named <Name>
  1994.         :FX<Delimiter><Name><Delimiter>
  1995.                 Execute basic Sedt commands in file 
  1996.                 <Name>
  1997.         :GE<Entity>    Get entity into delete buffer but do not 
  1998.                 remove from text
  1999.         :GAP<Entity>    Append entity to delete buffer but do not
  2000.                 remove from text
  2001.         :H        Display help message contained in 
  2002.                 SEDTHELP.TXT
  2003.         :I<Delimiter><Text><Delimiter>
  2004.                 Insert <Text> at current position
  2005.         :K{G}{F|A}NNN<Delimiter><Commands><Delimiter>
  2006.                 Define key as <Commands>
  2007.                 G    Gold
  2008.                 F    Function key
  2009.                 A    Ascii character
  2010.                 NNN    3 digit decimal number
  2011.         :LD        Decrease indentation by 1
  2012.         <Count>:LD    Decrease indentation by <Count>
  2013.         :LI        Increase indentation by 1
  2014.         <Count>:LI    Increase indentation by <Count>
  2015.         :LK{G}{F|A}NNN    Load key definition from current buffer
  2016.                 G    Gold
  2017.                 F    Function key
  2018.                 A    Ascii character
  2019.                 NNN    3 digit decimal number
  2020.         :LNE{G}{F|A}NNN Execute keystrokes previously saved in key
  2021.         :LNL{G}{F|A}NNN    Save subsequent keystrokes into key until key
  2022.                 retypes
  2023.         :LS        Set current column position as 
  2024.                 indentation
  2025.         :M        Save current position in point 1
  2026.         <Count>:M    Save current position in point <Count>
  2027.         :NL        Insert a new line character
  2028.         :NS        Substitute using save object and target
  2029.         :OE<Delimiter><String><Delimiter>
  2030.                 Output error message <String> and do
  2031.                 normal error mandling
  2032.         :OL        Open line
  2033.         :OM<Delimiter><String><Delimiter>
  2034.                 Output message <String> on message line
  2035.         :OS        Toggle replace/insert mode
  2036.         :PL<Delimiter><Name><Delimiter>
  2037.                 Load the paste buffer from file named
  2038.                 <Name>
  2039.  
  2040.  
  2041.  
  2042.  
  2043. Page 31
  2044.  
  2045.  
  2046.  
  2047.  
  2048. Sedt Users Guide
  2049. Version 2.0
  2050.  
  2051.  
  2052.  
  2053.         :PR<Delimiter<<Name><Delimiter>
  2054.                 Print current buffer on devive LST:
  2055.         :PS<Delimiter><Name><Delimiter>
  2056.                 Save the paste buffer in file named
  2057.                 <Name>
  2058.         :REP        Replace search string by contents of 
  2059.                 paste buffer
  2060.         :RF        Refresh the screen
  2061.         :RL        Change to ruler definition mode
  2062.             :RS        Remove select point
  2063.         :SEL        Save current position in select point
  2064.         :SK{G}{F|A}NNN    Save key definition in current buffer
  2065.                 G    Gold
  2066.                 F    Function key
  2067.                 A    Ascii character
  2068.                 NNN    3 digit decimal number
  2069.         :SL<Entity>    insert entity into search buffer
  2070.         :SUB<Delimiter><Object><Delimiter><Target><Delimiter>
  2071.                 replace next occurrence of <Object> with 
  2072.                 <Target>
  2073.         :SYS<Delimiter><Command><Delimiter>
  2074.                 Spawns <Command> to the operating system
  2075.         :TAB        Enter tab and space characters to advance 
  2076.                 to next tab stop
  2077.         :TAD<Entity>    Adjust the left margin of the text within 
  2078.                 the   range   of  the  entity.  Direction 
  2079.                 determines    whether   the   margin   is 
  2080.                 adjusted  left  or  right. A count may be 
  2081.                 used  to  adjust  by  more  than  one tab 
  2082.                 stop.
  2083.         :TF<Entity>    Fill within entity
  2084.         :TI        Return an error condition if type ahead
  2085.         :UC        Undelete last deleted character
  2086.         :UL        Undelete last deleted line
  2087.         :UM        Undo last command. Commands that can be 
  2088.                 undone are moves and substitutes
  2089.         :UPAG        Undelete last deleted page
  2090.         :UPAR        Undelete last deleted paragraph
  2091.         :UPD        Update screen including header
  2092.         :USEN        Undelete last deleted sentence
  2093.         :USR        Paste
  2094.         :UU        Undelete last unknown entity
  2095.         :UW        Undelete last deleted word
  2096.         :Q        Abort without saving file
  2097.         :WC        Toggle between one and two window display
  2098.         :WD        Toggle screen width between 80 and 132 
  2099.                 columns
  2100.         <Count>:WI    Select buffer <Count>
  2101.         :X        Exit and save file after creating backup 
  2102.                 file
  2103.         :Z        Zero current buffer
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109. Page 32
  2110.  
  2111.  
  2112.  
  2113.  
  2114. Sedt Users Guide
  2115. Version 2.0
  2116.  
  2117.  
  2118.  
  2119.     Error handling:
  2120.  
  2121.         If an  error  occurs during execution of a command string 
  2122.         the current command will be terminated and Sedt will skip 
  2123.         the rest of the  command  string.   Only when the command 
  2124.         string is contained in parentheses  after ^E will command 
  2125.         execution be resumed.
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175. Page 33
  2176.  
  2177.  
  2178.  
  2179.  
  2180. Sedt Users Guide
  2181. Version 2.0
  2182.  
  2183.  
  2184.  
  2185.               Key definition file
  2186.  
  2187.         Each  line  in  the   key  definition  file  SEDTKEYS.TXT 
  2188.     programs one key. The format  is  a  one  or two letter key type, 
  2189.     followed by a three digit decimal  key  number,  followed  by the 
  2190.     string to program the key with.
  2191.  
  2192.         If a key definition contains either ?,  ! or % special is 
  2193.     taken before the keys is executed:
  2194.  
  2195.             ?<Delimiter><String><Delimiter>  causes  Sedt  to 
  2196.         prompt with  String on the bottom line of the display and 
  2197.         accept an input  string  terminated  with  Return,  Do or 
  2198.         Enter.  The whole  original contruct is replaced with the 
  2199.         input string.
  2200.  
  2201.             ?? is replaced with ?.
  2202.  
  2203.             !<Delimiter><String><Delimiter>  causes  Sedt  to 
  2204.         prompt with  String on the bottom line of the display and 
  2205.         accept  a single  keystroke,  optionally  preceeded  with 
  2206.         Gold.  The whole  original  contruct  is  replaced with a 
  2207.         string identifying the key pressed.   The  syntax for the 
  2208.         identifying string is given below.
  2209.  
  2210.             !! is replaced with !.
  2211.  
  2212.             %F is replaced with the name  of  the  file being 
  2213.         edited in the current buffer.
  2214.  
  2215.             %N is replaced with the name -  minus  type  - of 
  2216.         the file being edited in the current buffer.
  2217.  
  2218.             %% is replaced with %.
  2219.  
  2220.  
  2221.  
  2222.     Key types:
  2223.  
  2224.         A    ASCII character
  2225.         GA    Gold ASCII character
  2226.         F    Function key
  2227.         GF    Gold function key
  2228.  
  2229.         Ascii character numbers are the decimal values of the 
  2230.     ASCII character.
  2231.  
  2232.     Function key numbers
  2233.  
  2234.         000        Compose
  2235.         001        Hold Screen
  2236.         002        Print Screen
  2237.  
  2238.  
  2239.  
  2240.  
  2241. Page 34
  2242.  
  2243.  
  2244.  
  2245.  
  2246. Sedt Users Guide
  2247. Version 2.0
  2248.  
  2249.  
  2250.  
  2251.         003        Setup
  2252.         004        F4
  2253.         005        Break
  2254.         006        Interrupt
  2255.         007        Resume
  2256.         008        Cancel
  2257.         009        Main Screen
  2258.         010        Exit
  2259.         011        ESC
  2260.         012        BS
  2261.         013        LF
  2262.         014        Additional Options
  2263.         015        Help
  2264.         016        Do
  2265.         017        F17
  2266.         018        F18
  2267.         019        F19
  2268.         020        F20
  2269.         021        Find
  2270.         022        Insert Here
  2271.         023        Remove
  2272.         024        Select
  2273.         025        Prev Screen
  2274.         026        Next Screen
  2275.         027        Up Arrow
  2276.         028        Left Arrow
  2277.         029        Down Arrow
  2278.         030        Right Arrow
  2279.         031        Keypad 0
  2280.         032        Keypad 1
  2281.         033        Keypad 2
  2282.         034        Keypad 3
  2283.         035        Keypad 4
  2284.         036        Keypad 5
  2285.         037        Keypad 6
  2286.         038        Keypad 7
  2287.         039        Keypad 8
  2288.         040        Keypad 9
  2289.         041        Keypad ,
  2290.         042        Keypad -
  2291.         043        Keypad .
  2292.         044        Keypad PF1
  2293.         045        Keypad PF2
  2294.         046        Keypad PF3
  2295.         047        Keypad PF4
  2296.         048        Keypad Enter
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307. Page 35
  2308.  
  2309.  
  2310.  
  2311.  
  2312. Sedt Users Guide
  2313. Version 2.0
  2314.  
  2315.  
  2316.  
  2317.             Some Sedt hints and suggestions
  2318.  
  2319.             Defining and inserting templates
  2320.  
  2321.         Many tasks,  such  as  programming,  require input of the 
  2322.     same  type  on  construct over and over again.  Probably the best 
  2323.     example of  this  is COBOL programming.  Using learn mode you can 
  2324.     define your own  set  of  templates that can be inserted with two 
  2325.     keystrokes.  Typically you  will  have  the  key definitions in a 
  2326.     Sedt command file which you  can load at your option depending on 
  2327.     the task you are working on.    The  following  example shows how 
  2328.     such a template file can be contructed and used.
  2329.  
  2330.         To  create  a  file  containing  a set of COBOL templates 
  2331.     called COBOL.TEM call Sedt with the command 
  2332.  
  2333.     Sedt COBOL.TEM
  2334.  
  2335.         Define the key Enter as follows.  Type Control K and type 
  2336.     Enter  to  the  Key:  prompt.  Enter the  following  at  the  As:  
  2337.     prompt:
  2338.  
  2339.     :I/:K!"Key:""/:SKA026@EL:I/"/:NL.
  2340.  
  2341.         Enter the following text as the first line:
  2342.  
  2343.     :KF014":LNE!/Insert Template: /.".
  2344.  
  2345.         This will define the key Additional Options to prompt for 
  2346.     and use a template key.
  2347.  
  2348.         Enter F18 to use buffer 1 as a scratch buffer.
  2349.  
  2350.         Enter Gold P17 to enter learn mode.
  2351.  
  2352.         Type  the  template you want to load.  A typical template 
  2353.     will be  a COBOL statement or the minimum COBOL program.  In this 
  2354.     case we will  load the template for "VALUE OF IDENTIFICATION IS " 
  2355.     simply by typing the  text  as you want it in the template.  Note 
  2356.     that you can include using  Gold  M to mark special places in the 
  2357.     template you may want to go  to,  Returns,  Tabs or anything else 
  2358.     you want repeated to create the template.   When you are finished 
  2359.     type Control Z to end learn mode.
  2360.  
  2361.         Enter F17 to return to buffer 0.
  2362.  
  2363.         Hit  Enter  and  type  the  key  you want to contain  the 
  2364.     template  at  the  Key:    prompt.    Note that you can  use  any 
  2365.     character including  the  letters  of  the  alphabet in upper and 
  2366.     lower case (which  are  the same), function keys, with or without 
  2367.     Gold. You will now have a line inserted into COBOL.TEM.
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373. Page 36
  2374.  
  2375.  
  2376.  
  2377.  
  2378. Sedt Users Guide
  2379. Version 2.0
  2380.  
  2381.  
  2382.  
  2383.         Continue this process until  you  have  defined  all your 
  2384.     templates.  Any line  starting  with a ;  is treated as a comment 
  2385.     line.
  2386.  
  2387.         Save the file with Gold F.
  2388.  
  2389.         When you want to use the templates load  them  by  typing 
  2390.     Gold  X and entering COBOL.TEM at the "Execute Sedt  commands  in 
  2391.     File:" prompt.
  2392.  
  2393.         Now  when  you  want  to  use a template enter Additional 
  2394.     Options and type the key that you have entered the template  into 
  2395.     at the "Insert Template: " prompt.
  2396.  
  2397.         A simple  template  for  C  programs  is  included in the 
  2398.     distribution in the file C.TEM.
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439. Page 37
  2440.  
  2441.  
  2442.  
  2443.