home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / jed098-4.zip / JED / DOC / XJED.TXT < prev    next >
Text File  |  1997-02-01  |  5KB  |  130 lines

  1. These are some notes about using xjed, the X Window version of JED.  It also
  2. mentions information about how to setup the EDT emulation under Linux.
  3.  
  4. xjed recognizes the following resources:
  5.  
  6.    Display    [d]    Display to run on
  7.    Name              Instance name
  8.    Geometry          Initial geometry specifications
  9.    font              Default font to use
  10.    background [bg]   Background color
  11.    foreground [fg]   Forground color
  12.    Title             name to be displayed on the title bar
  13.    fgStatus   [fgs]  foreground color of the xjed buffer status line
  14.    bgStatus   [bgs]  background color of the xjed buffer status line
  15.    fgRegion   [fgr]  foreground color of a region as defined by point and mark
  16.    bgRegion   [bgr]  background color of a region as defined by point and mark
  17.    fgCursor   [fgc]  text cursor foreground color
  18.    bgCursor   [bgc]  text cursor background color
  19.    fgMouse    [fgm]  mouse cursor foreground color
  20.    bgMouse    [bgm]  mouse cursor background color
  21.    fgMessage  [fgms] Foreground color for messages
  22.    bgMessage  [bgms] Background color for messages
  23.    fgError    [fger] Foreground color for error messages
  24.    bgError    [bger] Background color for messages
  25.    
  26. These resources specify color syntax highlighting options:
  27.  
  28.    fgOperator    [fgop]   forground color for operators (+, -, etc...)
  29.    bgOperator    [bgop]   background color for operators
  30.    fgNumber      [fgnm]   forground color for numbers
  31.    bgNumber      [bgnm]   background color for numbers
  32.    fgString      [fgst]   forground color for strings
  33.    bgString      [bgst]   background color for strings
  34.    fgComments    [fgco]   forground color for comments
  35.    bgComments    [bgco]   background color for comments
  36.    fgKeyword     [fgkw]   forground color for keywords
  37.    bgKeyword     [bgkw]   background color for keywords
  38.    fgKeyword1    [fgkw1]  forground color for keywords1
  39.    bgKeyword1    [bgkw1]  background color for keywords1
  40.    fgDelimiter   [fgde]   forground color for delimeters
  41.    bgDelimiter   [bgde]   background color for delimeters
  42.    fgPreprocess  [fgpr]   forground color for preprocessor lines
  43.    bgPreprocess  [bgpr]   background color for preprocessor lines
  44.  
  45. Any of the above items may be specified on the xjed command line. Quantities
  46. enclosed in square brackets may be used as a shortform of their longer
  47. counterparts.
  48.  
  49. For example, 
  50.  
  51.  xjed -d space:0.0 -font 9x15 -bg blue -fg white
  52.  
  53. will start xjed using the server on amy using a white on blue 9x15 font.
  54.  
  55. Once the X Window resource specifications have been parsed, any remaining
  56. command line arguments are parsed as normal JED command line arguments.
  57.  
  58. The easiest way to specify the resources is to make use of a `.Xdefaults'
  59. in your $HOME directory.  Here is an example entry for Xjed:
  60.  
  61. xjed*Geometry: 80x36+100+100
  62. xjed*font: 10x20
  63. xjed*background: white
  64. xjed*foreground: black
  65. xjed*fgNumber: blue
  66.  
  67. The first line specifies that the initial window size is 80 columns by 36
  68. rows and that the top left corner of the window is to be positioned at (100,
  69. 100). The second line specifies a fixed 10x20 font.  The other two lines
  70. specify the foreground and background colors of the window.
  71.  
  72.  
  73. ------------------------------------------------------------------------
  74. Mouse Usage:
  75.  
  76. XJED S-Lang specific functions:
  77.  
  78.    x_set_window_name   :  Set the name of the window (for title bar)
  79.    x_warp_pointer      :  Move mouse position to cursor position
  80.    x_insert_cutbuffer  :  insert contents of system cut buffer in current
  81.                           buffer
  82.    x_copy_region_to_cutbuffer
  83.                        :  insert a region in system cutbuffer
  84.    x_set_keysym        :  define an equivalence string to be returned
  85.                           when a function key is pressed.
  86.               
  87.   also, set_color() may be used to set colors of mouse, cursor, normal,
  88.   region, and status line as well as the colors used by the syntax
  89.   highlighting routines.  For example,
  90.   
  91.       set_color ("mouse", "red", "blue");
  92.  
  93.   gives the mouse cursor a red forground with a blue background.  The color
  94.   values must be recognizable by the X server.
  95.   
  96.   In addition to the usual keybindings, the X version binds:
  97.   
  98.      Control-UP     :  goto top of buffer
  99.      Control-DOWN   :  goto end of buffer
  100.      Shift-UP       :  move to top of window
  101.      Shift-DOWN     :  move to bottom of window
  102.      Control-RIGHT  :  Pan the window to the right
  103.      Control-LEFT   :  Pan the window to the left
  104.      Shift-RIGHT    :  skip to next word
  105.      Shift-LEFT     :  skip to previous word
  106.      
  107. Miscellaneous:
  108.  
  109.    Suspending XJed is not allowed.  If ^Z is pressed, the window is raised
  110.    if it is obscured, or lowered if it is totally visible.
  111.  
  112.  
  113. EDT emulation under Linux.  
  114.  
  115. Angelo Pagan (pagan@astrpd.pd.astro.it) suggests putting 
  116.  
  117.     keycode 22  = Delete
  118.     keycode 77  = KP_F1
  119.     keycode 112 = KP_F2
  120.     keycode 63  = KP_F3
  121.     keycode 82  = KP_F4
  122.     keycode 86  = KP_Separator
  123.  
  124. in the .Xmodmap file to enable EDT keypad emulation.
  125.  
  126. Send comments and suggestions to davis@space.mit.edu
  127.  
  128.  
  129.    
  130.