
composer(PS)                 Khoros                  composer(PS)

     PROGRAM SPECIFICATION EDITING:  EDITOR COMMANDS

     The pop-up edit window has available a number of editing
     commands.  These commands allow you to move around and edit
     the text.  If an illegal operation is attempted, the termi-
     nal bell will be rung.  The editor commands are patterned
     after those in the EMACS text editor:

          Ctrl-a                Beginning Of Line

          Ctrl-b                Backward Character

          Ctrl-d                Delete Next Character

          Ctrl-e                End Of Line

          Ctrl-f                Forward Character

          Ctrl-h                Delete Previous Character

          Ctrl-j                Newline And Indent

          Ctrl-k                Kill To End Of Line

          Ctrl-l                Redraw Display

          Ctrl-m                Newline

          Ctrl-n                Next Line

          Ctrl-o                Newline And Backup

          Ctrl-p                Previous Line

          Ctrl-r                Search/Replace Backward

          Ctrl-s                Search/Replace Forward

          Ctrl-t                Transpose Characters

          Ctrl-v                Next Page

          Ctrl-w                Kill Selection

          Ctrl-y                Unkill

          Ctrl-z                Scroll One Line Up

          Meta-b                Backward Word

          Meta-f                Forward Word

          Meta-i                Insert File

          Meta-k                Kill To End Of Paragraph

          Meta-q                Form Paragraph

          Meta-v                Previous Page

          Meta-y                Insert Current Selection

          Meta-z                Scroll One Line Down

          Meta-d                Delete Next Word

          Meta-D                Kill Word

          Meta-h                Delete Previous Word

          Meta-H                Backward Kill Word

          Meta-<                Beginning Of File

          Meta->                End Of File

          Meta-Shift Delete     Kill Previous Word

          Meta-Delete           Delete Previous Word

          Meta-]                Forward Paragraph

          Meta-[                Backward Paragraph

          Meta-Backspace        Delete Previous Word

          Meta-Shift Backspace  Kill Previous Word

     Search and Replace

     The editor provides a search popup that can be used to
     search for a string within the current Text widget.  The
     popup can be activated by typing either Control-r or
     Control-s.  If Control-s is used the search will be forward
     in the file from the current insert point location; if
     Control-r is used the search will be backward.  The
     activated popup is placed under the pointer.  It has a
     number of buttons that allow both text searches and text
     replacements to be performed.

     At the top of the search popup are two toggle buttons
     labeled backward and forward.  One of these buttons will
     always be highlighted; this is the direction in which the
     search will be performed.  The user can change the direction
     at any time by clicking on the appropriate button.

     File Insertion

     To insert a file into the text, type the key sequence Meta-
     i, which will activate the file insert popup.  This popup
     will appear under the pointer, and any text typed while the
     focus is in this popup will be redirected to the text field
     used for the filename.  When the desired filename has been
     entered, click on Insert File, or type Carriage Return.  The
     named file will then be inserted in the text widget begin-
     ning at the insert point position.  If an error occurs when
     opening the file, an error message will be printed, prompt-
     ing the user to enter the filename again.  The file insert
     may be aborted by clicking on Cancel.

     Cut and Paste with Mouse

     The editor has a very powerful text selection mechanism that
     allows the user to copy pieces of the text into the PRIMARY
     selection, and paste the text into another area.

     The simplest method of selecting text is to press pointer
     Button 1 on the beginning of the text to be selected, drag
     the pointer until all of the desired text is highlighted,
     and then release the button to activate the selection.  The
     text may now be pasted into any other area.

     To modify a currently active selection, click pointer Button
     3 near either the end or the beginning of the selection that
     you want to adjust.  This end of the selection may be moved
     while holding down pointer button 3.  When the proper area
     has been highlighted release the pointer button to activate
     the selection.

     The following table gives the mouse actions to cut and
     paste.

          Button 1 Down     Start Selection

          Button 1 Motion   Adjust Selection

          Button 1 Up       End Selection (cut)

          Button 2 Down     Insert Current Selection (paste)

          Button 3 Down     Extend Current Selection

          Button 3 Motion   Adjust Selection

          Button 3 Up       End Selection (cut)

     Rapidly clicking pointer button 1 the following number of
     times will adjust the selection as described.

     Two       Select the word under the pointer.  A word boun-
               dary is defined by the Text widget to be a Space,
               Tab, or Carriage Return.

     Three     Select the line under the pointer.

     Four      Select the paragraph under the pointer.  A para-
               graph boundary is defined by the text widget as
               two Carriage Returns in a row with only Spaces or
               Tabs between them.

     Five      Select the entire text buffer.

     To unset the text selection just click and release pointer
     button 1 without moving it.

     This documentation was taken from the X Windows Manual,
     Athena Widget Set - C Language Interface, Chapter 5.  Copy-
     right MIT and DEC.

     Copyright 1991, University of New Mexico. All rights
     reserved.

Version: 0                 Release: 1                           1

