home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / i / iv26_w_3.zip / EXAMPLES / STED / STED.TXT < prev   
Text File  |  1980-01-05  |  4KB  |  95 lines

  1. 24 May 1989                                                       sted(1)
  2.  
  3. NAME
  4.      sted - simple text editor demo program
  5.  
  6. SYNOPSIS
  7.      sted filename ...
  8.  
  9. DESCRIPTION
  10.      Sted  is a  simple  text editor  that   illustrates the  use of  the
  11.      TextEditor and TextBuffer classes.  Multiple files can be  edited in
  12.      separate windows.    Initially,  windows are  opened    on each file
  13.      specified on the command   line.    Sted is   not intended to   be a
  14.      complete editor and cannot save modifications to a file.
  15.  
  16. EDITING MODEL
  17.      Sted implements a small subset of editing commands  using an editing
  18.      model  similar to emacs.   Each window has   a single text selection
  19.      that is displayed with reversed colors.   If the selection is empty,
  20.      an insertion caret is  displayed  instead.   Characters typed into a
  21.      window replace the current contents of the selection.
  22.  
  23.      Currently defined commands include
  24.  
  25.          quit
  26.               Close all windows and exit
  27.  
  28.          close
  29.               Close this window
  30.  
  31.          visit <filename>
  32.               Open a new window on filename
  33.  
  34.          file <filename>
  35.               Edit filename in the current window
  36.  
  37.          search <regexp>
  38.               Search  forward   for a match   with  the   regular
  39.               expression regexp,   wrapping from  the end  to the
  40.               beginning of the buffer if necessary.
  41.  
  42.          goto <line>
  43.               Move the insertion point to the  beginning  of line
  44.               line, scrolling the display if necessary.
  45.  
  46.      Commands  are issued by clicking and  typing  in the 'minibuffer' at
  47.      the bottom of the window.
  48.  
  49. MOUSE BINDINGS
  50.      The left mouse button  is used to  select text.  Clicking   the left
  51.      button in the text window  selects  a new insertion point;  Dragging
  52.      the button selects a range of text.  If the mouse is dragged outside
  53.      the window, the display  is scrolled to keep  the selection point in
  54.      view.
  55.  
  56.      The middle  and right  mouse  buttons illustrate different  ways  of
  57.      scrolling  with  the   mouse.   Of course,   scrolling can also   be
  58.      performed  using  the scroller in the normal  way.  The middle mouse
  59.      button does 'grabber'  scrolling.  Clicking and  dragging the middle
  60.      button causes the text to move along with the mouse.  This scrolling
  61.      style is useful for fine control  over small scrolling ranges.   The
  62.      right mouse button does 'rate'  scrolling.   Clicking with the right
  63.      button  and 'pulling back'  on the mouse causes  the text  to scroll
  64.      upwards at a rate dependent on the position of the mouse.   'Pushing
  65.      forward' causes downwards   scrolling.  This  style  of scrolling is
  66.      useful for rapidly scanning through a large document.
  67.  
  68. KEYBOARD BINDINGS
  69.      For convenience, many operations can be performed from the keyboard.
  70.      These operations  include  scrolling, cursor  movement,  and command
  71.      execution.  The current keyboard  bindings mimic similar bindings in
  72.      standard emacs.
  73.  
  74.     (ESC-V)        backward page
  75.     (^V)        forward page
  76.     (^P)        backward line
  77.     (^N)        forward line
  78.     (^B)        backward character
  79.     (^F)        forward character
  80.     (ESC-<)        beginning of buffer
  81.     (ESC->)        end of buffer
  82.     (^A)        beginning of line
  83.     (^E)        end of line
  84.     (^D)        delete character
  85.     (DEL) (^H)    delete backward character
  86.     (ESC-=)        goto
  87.     (^S)        search
  88.     (^X-^V)        visit
  89.     (^X-^F)        file
  90.     (^X-K)        close
  91.     (^X-^C)        quit
  92.  
  93. SEE ALSO
  94.      TextBuffer(3I), TextEditor(3I), StringEditor(3I), Regexp(3I)
  95.