home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / gfx / daggex / docs / clients / xedit.doc < prev    next >
Encoding:
Text File  |  1994-06-04  |  8.8 KB  |  265 lines

  1.  
  2.  
  3.  
  4. XEDIT(1)                                                 XEDIT(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        xedit - simple text editor for X
  9.  
  10. SSYYNNTTAAXX
  11.        xxeeddiitt [ _-_t_o_o_l_k_i_t_o_p_t_i_o_n ... ] [ _f_i_l_e_n_a_m_e ]
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.        _X_e_d_i_t  provides  a window consisting of the following four
  15.        areas:
  16.  
  17.        Commands Section         A set of commands that allow  you
  18.                                 to  exit _x_e_d_i_t, save the file, or
  19.                                 load a new  file  into  the  edit
  20.                                 window.
  21.  
  22.        Message Window           Displays _x_e_d_i_t messages. In addi-
  23.                                 tion, this window can be used  as
  24.                                 a scratch pad.
  25.  
  26.        Filename Display         Displays  the  name  of  the file
  27.                                 currently   being   edited,   and
  28.                                 whether  this  file is _R_e_a_d_-_W_r_i_t_e
  29.                                 or _R_e_a_d _O_n_l_y.
  30.  
  31.        Edit Window              Displays the  text  of  the  file
  32.                                 that you are editing or creating.
  33.  
  34. OOPPTTIIOONNSS
  35.        _X_e_d_i_t accepts all of the standard X Toolkit  command  line
  36.        options (see _X(1)).  The order of the command line options
  37.        is not important.
  38.  
  39.        _f_i_l_e_n_a_m_e
  40.                Specifies the file that is  to  be  loaded  during
  41.                start-up.  This  is the file which will be edited.
  42.                If a file is not specified, _x_e_d_i_t lets you load  a
  43.                file or create a new file after it has started up.
  44.  
  45. EEDDIITTIINNGG
  46.        The Athena Text widget is used for the three  sections  of
  47.        this  application  that  allow text input.  The characters
  48.        typed will go to the Text widget that the  pointer  cursor
  49.        is  currently  over.   If the pointer cursor is not over a
  50.        text widget then the keypresses will have no effect on the
  51.        application.   This  is  also  true  for  the  special key
  52.        sequences that popup dialog widgets, so  typing  Control-S
  53.        in  the filename widget will enable searching in that wid-
  54.        get, not the edit widget.
  55.  
  56.        Both the message window and the edit window will create  a
  57.        scrollbar  if  the  text to display is too large to fit in
  58.        that window.   Horizontal  scrolling  is  not  allowed  by
  59.        default,  but  can  be turned on through the Text widget's
  60.        resources, see _A_t_h_e_n_a _W_i_d_g_e_t _S_e_t for  the  exact  resource
  61.  
  62.  
  63.  
  64. X Version 11                Release 5                           1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XEDIT(1)                                                 XEDIT(1)
  71.  
  72.  
  73.        definition.
  74.  
  75.  
  76.        The following keystroke combinations are defined:
  77.  
  78.        Ctrl-a    Beginning Of Line   Meta-b         Backward Word
  79.        Ctrl-b    Backward Character  Meta-f         Forward Word
  80.        Ctrl-d    Delete Next Character              Meta-iInsert File
  81.        Ctrl-e    End Of Line         Meta-k         Kill To End Of Paragraph
  82.        Ctrl-f    Forward Character   Meta-q         Form Paragraph
  83.        Ctrl-g    Multiply Reset      Meta-v         Previous Page
  84.        Ctrl-h    Delete Previous Character          Meta-yInsert Current Selection
  85.        Ctrl-j    Newline And Indent  Meta-z         Scroll One Line Down
  86.        Ctrl-k    Kill To End Of Line Meta-d         Delete Next Word
  87.        Ctrl-l    Redraw Display      Meta-D         Kill Word
  88.        Ctrl-m    Newline             Meta-h         Delete Previous Word
  89.        Ctrl-n    Next Line           Meta-H         Backward Kill Word
  90.        Ctrl-o    Newline And Backup  Meta-<         Beginning Of File
  91.        Ctrl-p    Previous Line       Meta->         End Of File
  92.        Ctrl-r    Search/Replace Backward            Meta-]Forward Paragraph
  93.        Ctrl-s    Search/Replace Forward             Meta-[Backward Paragraph
  94.        Ctrl-t    Transpose Characters
  95.        Ctrl-u    Multiply by 4       Meta-Delete    Delete Previous Word
  96.        Ctrl-v    Next Page           Meta-Shift DeleteKill Previous Word
  97.        Ctrl-w    Kill Selection      Meta-Backspace Delete Previous Word
  98.        Ctrl-y    Unkill              Meta-Shift BackspaceKill Previous Word
  99.        Ctrl-z    Scroll One Line Up
  100.  
  101.        In addition, the pointer may be used to cut and paste text:
  102.             Button 1 Down  Start Selection
  103.             Button 1 MotionAdjust Selection
  104.             Button 1 Up    End Selection (cut)
  105.  
  106.             Button 2 Down  Insert Current Selection (paste)
  107.  
  108.             Button 3 Down  Extend Current Selection
  109.             Button 3 MotionAdjust Selection
  110.             Button 3 Up    End Selection (cut)
  111.  
  112.  
  113. CCOOMMMMAANNDDSS
  114.        Quit    Quits  the current editing session. If any changes
  115.                have not been saved, _x_e_d_i_t displays a warning mes-
  116.                sage, allowing the user to save the file.
  117.  
  118.        Save    If file backups are enabled (see RESOURCES, below)
  119.                _x_e_d_i_t stores a copy of the original, unedited file
  120.                in  <prefix>_f_i_l_e<suffix>, then overwrites the _f_i_l_e
  121.                with the contents of the edit window.   The  file-
  122.                name is retrieved from the Text widget directly to
  123.                the right of the _L_o_a_d button.
  124.  
  125.        Load    Loads the file named in the  text  widget  immedi-
  126.                ately to the right of the this button and displays
  127.  
  128.  
  129.  
  130. X Version 11                Release 5                           2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. XEDIT(1)                                                 XEDIT(1)
  137.  
  138.  
  139.                it in the Edit window.  If the currently displayed
  140.                file  has been modified a warning message will ask
  141.                the user to save the changes, or press _L_o_a_d again.
  142.  
  143. RREESSOOUURRCCEESS
  144.        For _x_e_d_i_t the available resources are:
  145.  
  146.        eennaabblleeBBaacckkuuppss ((Class EEnnaabblleeBBaacckkuuppss))
  147.                Specifies  that,  when  edits  made to an existing
  148.                file are saved, _x_e_d_i_t is to copy the original ver-
  149.                sion  of  that file to <prefix>_f_i_l_e<suffix> before
  150.                it saves the changes.  The default value for  this
  151.                resource  is  ``off,''  stating  that  no  backups
  152.                should be created.
  153.  
  154.        bbaacckkuuppNNaammeePPrreeffiixx ((Class BBaacckkuuppNNaammeePPrreeffiixx))
  155.                Specifies a string that is to be prepended to  the
  156.                backup  filename.   The  default is that no string
  157.                shall be prepended.
  158.  
  159.        bbaacckkuuppNNaammeeSSuuffffiixx ((Class BBaacckkuuppNNaammeeSSuuffffiixx))
  160.                Specifies a string that is to be appended  to  the
  161.                backup  filename.   The default is to use ``.BAK''
  162.                as the suffix.
  163.  
  164. WWIIDDGGEETTSS
  165.        In order to specify resources, it is useful  to  know  the
  166.        hierarchy  of  the  widgets  which  compose _x_e_d_i_t.  In the
  167.        notation below, indentation indicates hierarchical  struc-
  168.        ture.   The  widget class name is given first, followed by
  169.        the widget instance name.
  170.  
  171.        Xedit  xedit
  172.             Paned  paned
  173.                  Paned  buttons
  174.                       Command  quit
  175.                       Command  save
  176.                       Command  load
  177.                       Text  filename
  178.                  Label  bc_label
  179.                  Text  messageWindow
  180.                  Label  labelWindow
  181.                  Text  editWindow
  182.  
  183.  
  184. EENNVVIIRROONNMMEENNTT
  185.        _D_I_S_P_L_A_Y             to get the default  host  and  display
  186.                            number.
  187.  
  188.        _X_E_N_V_I_R_O_N_M_E_N_T        to  get  the  name  of a resource file
  189.                            that overrides  the  global  resources
  190.                            stored  in  the RESOURCE_MANAGER prop-
  191.                            erty.
  192.  
  193.  
  194.  
  195.  
  196. X Version 11                Release 5                           3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. XEDIT(1)                                                 XEDIT(1)
  203.  
  204.  
  205. FFIILLEESS
  206.        _/_u_s_r_/_l_i_b_/_X_1_1_/_a_p_p_-_d_e_f_a_u_l_t_s_/_X_e_d_i_t
  207.                            specifies required resources
  208.  
  209. SSEEEE AALLSSOO
  210.        _X(1), _x_r_d_b(1), _A_t_h_e_n_a _W_i_d_g_e_t _S_e_t
  211.  
  212. RREESSTTRRIICCTTIIOONNSS
  213.        There is no _u_n_d_o function.
  214.  
  215. CCOOPPYYRRIIGGHHTT
  216.        Copyright 1988, Digital Equipment Corporation.
  217.        Copyright 1989, Massachusetts Institute of Technology.
  218.        See _X(1) for a full statement of rights and permissions.
  219.  
  220. AAUUTTHHOORR
  221.        Chris D. Peterson, MIT X Consortium
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262. X Version 11                Release 5                           4
  263.  
  264.  
  265.