home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / x-faq / part2 < prev    next >
Encoding:
Text File  |  1995-07-25  |  46.0 KB  |  1,022 lines

  1. Subject: comp.windows.x Frequently Asked Questions (FAQ) 2/6
  2. Newsgroups: comp.windows.x,news.answers,comp.answers
  3. From: dbl@ics.com (David B. Lewis)
  4. Date: 23 Oct 1994 23:08:08 GMT
  5.  
  6. Archive-name: x-faq/part2
  7. Last-modified: 1994/10/23
  8.  
  9. ----------------------------------------------------------------------
  10. Subject:  19)  How do I change the keyboard auto-repeat rate?
  11.  
  12.     You can turn auto-repeat on or off by using "xset r on|off". 
  13.  
  14.     The base X11 protocol, doesn't provide for varying the auto-repeat
  15. rate, which is a capability not supported by all systems.
  16.     Some pre-R6 servers may provide command-line flags to set the rate at
  17. start-up time. If you have control over server start-up (see the man pages
  18. for xinit and xdm), you can invoke the server with the chosen settings; for
  19. example, you can start the R5 Xsun sample server with the options "-ar1 350
  20. -ar2 30" to reduce the sensitivity of the keyboard.
  21.  
  22.     The R6 X Keyboard Extension provides a vendor-independent way to
  23. control repeat delay and rate.
  24.  
  25. ----------------------------------------------------------------------
  26. Subject:  20)  How do I remap the keys on my keyboard to produce a string?
  27.  
  28.     There is no method of arranging for a particular string to be produced
  29. when you press a particular key. The xmodmap client, which is useful for
  30. moving your CTRL and ESC keys to useful places, just rearranges keys and does
  31. not do "macro expansion."
  32.     Some (few) clients, including xterm and several X-based editors,
  33. accept a translation resource such as:
  34.     xterm*VT100.Translations: #override \
  35.         <Key>F1: string("setenv DISPLAY unix:0")
  36. which permits the shorthand F1 to be pressed to reset the display locally
  37. within an xterm; it takes effect for new xterm clients. To include control
  38. characters in the string, use \nnn, where nnn is the octal encoding of the
  39. control character you want to include.
  40.     Window managers, which could provide this facility, do not yet; nor
  41. has a special "remapper" client been made available.
  42.  
  43. ----------------------------------------------------------------------
  44. Subject:  21)  How do I make a screendump or print my application (including menus)?
  45.  
  46. The xwd client in the X11 distributions can be used to select a window or the
  47. background. It produces an XWD-format file of the image of that window.  The
  48. file can be post-processed into something useful or printed with the xpr
  49. client and your local printing mechanism. To print a screendump including a
  50. menu or other object which has grabbed the pointer, you can use this
  51. command:
  52.  
  53.         csh% sleep 10; xwd -root > output.xwd &
  54.  
  55. and then spend 10 seconds or so setting up your screen; the entire current
  56. display will be saved into the file output.xwd. Note that xwd also has an
  57. undocumented (before R5) -id flag for specifying the window id on the
  58. command-line. [There are also unofficial patches on ftp.x.org to xwd for
  59. specifying the delay and the portion of the screen to capture.]
  60.  
  61. Two publicly-available programs which allow interactive definition of
  62. arbitrary portions of the display and built-in delays are xsnap and xgrabsc.
  63.  
  64. xgrabsc is a free screendump program that provides multiple selection styles
  65. and several output formats.  Selection styles include xwd-style point and
  66. click, dragging a rectangle over an arbitrary portion of the screen, timed
  67. snapshots for menu capturing, and keyboard-based selection.  Output formats
  68. are xwd, XPM (v1 and 2), bitmap, puzzle, and monochrome, greyscale, and color
  69. PostScript.  PostScript output can be in ready-to-print true-scale form or
  70. encapsulated for inclusion in Frame, xfig, and other programs that accept EPS
  71. graphics.  There are several versions of xgrabsc; version 2.3, available on
  72. ftp.x.org [9/93] is the most recent.  xgrab, part of the package, is an
  73. interactive front-end to xgrabsc.
  74.  
  75. xwpick (formerly xpick) (by Evgeni Chernyaev (chernaev@mx.ihep.su)) is
  76. available on ftp.x.org as xwpick-2.20.tar.Z; it creates Level 2 color
  77. PostScript dumps of X screens and can generate GIF, PICT, and other formats.
  78. PostScript output is very small. xwpick runs under VMS and Unix systems.
  79.  
  80. xsnap includes some asnap features and supersedes it; it also renders XPM
  81. output [version unknown]. It is available on ftp.x.org or avahi.inria.fr; see
  82. xsnap-pl2.tar.Z.
  83.  
  84. A screen-dump and merge/edit program combining features of xwd and xpr is
  85. available from vernam.cs.uwm.edu as xdump1.0.tar.Z.  Information:
  86. soft-eng@cs.uwm.edu.
  87.  
  88. xprint, by Alberto Accomazzi (alberto@cfa.harvard.edu) is available from
  89. cfa0.harvard.edu (128.103.40.1) as /pub/wipl/xprint.export-2.1.tar.Z.  The
  90. package allows users to create encapsulated color PostScript files which will
  91. print on any PostScript Level-1 compliant printer (black and white or
  92. color).
  93.  
  94. To post-process the xwd output of some of these tools, you can use xpr, which
  95. is part of the X11 distribution (moved to contrib in R6). Also on several
  96. archives are xwd2ps and XtoPS, which produce Encapsulated PostScript with
  97. trimmings suitable for use in presentations (see
  98. ftp.x.org:contrib/xwd2ps.tar.Z and contrib/ImageMagick2.3.7.tar.Z). Also
  99. useful is the PBMPLUS/Netpbm package on many archive servers; and the Xim
  100. package contains Level 2 color PostScript output.
  101.  
  102. The XV program can grab a portion of the X display, manipulate it, and save
  103. it in one of the available formats. ImageMagick has similar capabilities.
  104.  
  105. Also:
  106.  
  107. Bristol Technology (info@bristol.com, 203-438-6969) offers Xprinter 2.0, an
  108. Xlib API for PostScript and PCL printers; a demo is on ftp.uu.net in
  109. ftp.bristol.com:/Demos/DE.
  110.  
  111. ColorSoft 9619-459-8500) offers OPENprint; the package includes a
  112. screen-capture facility, image-processing, and support for PostScript and
  113. non-PostScript printers.
  114.  
  115. Some vendors' implementations of X (e.g. DECWindows and OpenWindows) include
  116. session managers or other desktop programs which include "print portion of
  117. screen" or "take a snapshot" options. Some platforms also have tools which
  118. can be used to grab the frame-buffer directly; the Sun systems, for example,
  119. have a 'screendump' program which produces a Sun raster file.  Some X
  120. terminals have local screen-dump utilities to write PostScript to a local
  121. serial printer.
  122.  
  123. Some vendors' implementations of lpr (e.g. Sony) include direct support for
  124. printing xwd files, but you'll typically need some other package to massage
  125. the output into a useful format which you can get to the printer.
  126.  
  127. ----------------------------------------------------------------------
  128. Subject:  22)  How do I make a color PostScript screendump of the X display?
  129.  
  130. If you need color PostScript in particular, you can 
  131.  
  132.     - grab the screen-image using a program which can produce color 
  133. PostScript, such as xgrabsc, xprint, xwpick, and xv
  134.  
  135.     - grab the screen-image using xwd and post-process xwd into color PS.
  136.  
  137. You can do this using xwd2ps or the XtoPS program from the ImageMagick
  138. distribution. The PBMPLUS/Netpbm package is also good for this, as is the Xim
  139. package.
  140.  
  141. ----------------------------------------------------------------------
  142. Subject:  23)  How do I make a screendump including the X cursor?
  143.  
  144. This can't be done unless the X server has been extended. Consider instead a
  145. system-dependent mechanism for, e.g.,  capturing the frame-buffer.
  146.  
  147. ----------------------------------------------------------------------
  148. Subject:  24)  How do I convert or view Mac/TIFF/GIF/Sun/PICT/img/FAX images in X?
  149.  
  150. The likeliest program is an incarnation of Jef Poskanzer's useful++ Portable
  151. Bitmap Toolkit, which includes a number of programs for converting among
  152. various image formats. It includes support for many types of bitmaps,
  153. gray-scale images, and full-color images. PBMPLUS has been updated recently;
  154. the most recent version [12/91] is on ftp.x.org in
  155. contrib/pbmplus10dec91.tar.Z.
  156.  
  157. Netpbm is based on the PBMPLUS 10dec91 release, with many additions and
  158. improvements. It is intended to be portable to many platforms while allowing
  159. for conversion of images between a variety of formats. The latest sources are
  160. on several sites, including wuarchive.wustl.edu (128.252.135.4) and
  161. peipa.essex.ac.uk (155.245.115.161). Contact oliver@fysik4.kth.se to be added
  162. to the netpbm mailing list.
  163.  
  164. Another tool is San Diego Supercomputing Center's IMtools ('imconv' in
  165. particular), which packages the functionality of PBM into a single binary.
  166. It's available anonymous ftp from sdsc.edu (132.249.20.22).
  167.  
  168. Useful for viewing and converting some image-formats is Jim Frost's
  169. xloadimage; the most recent [11/93] is on ftp.x.org in
  170. contrib/xloadimage.4.1.tar.Z.  Graeme Gill's updates to an earlier version of
  171. xloadimage are also on ftp.x.org; see xli.README and xli.tar.Z.uu; version
  172. 1.15 was released 7/93.
  173.  
  174. xv (X Image Viewer), written by bradley@cis.upenn.edu (John Bradley), can
  175. read and display pictures in Sun Raster, PGM, PBM, PPM, X11 bitmap, TIFF, GIF
  176. and JPEG. It can manipulate on the images: adjust, color, intensity,
  177. contrast, aspect ratio, crop). It can save images in all of the
  178. aforementioned formats plus PostScript. It can grab a portion of the X
  179. display, manipulate on it, and save it in one of the available formats. The
  180. program was updated 5/92; see the file contrib/xv-2.21.tar.Z on ftp.x.org.
  181. Version 3.00 [5/93] is distributed as shareware.
  182.  
  183. The Fuzzy Pixmap Manipulation, by Michael Mauldin (mlm@nl.cs.cmu.edu).
  184. Conversion and manipulation package, similar to PBMPLUS.  Version 1.0
  185. available via FTP as nl.cs.cmu.edu:/usr/mlm/ftp/fbm.tar.Z,
  186. uunet.uu.net:pub/fbm.tar.Z, and ucsd.edu:graphics/fbm.tar.Z.
  187.  
  188. The Img Software Set, by Paul Raveling <raveling@venera.isi.edu>, reads and
  189. writes its own image format, displays on an X11 screen, and does some image
  190. manipulations.  Version 1.3 is available via FTP on ftp.x.org as
  191. contrib/img_1.3.tar.Z, along with large collection of color images.
  192.  
  193. The Utah RLE Toolkit is a conversion and manipulation package similar to
  194. PBMPLUS.  Available via FTP as cs.utah.edu:pub/urt-*,
  195. weedeater.math.yale.edu:pub/urt-*, and freebie.engin.umich.edu:pub/urt-*.
  196.  
  197. Xim, The X Image Manipulator, by Philip Thompson, does essential interactive
  198. displaying, editing, filtering, and converting of images. There is a version
  199. in the X11R4 contrib area; but a more recent version (using R4 and Motif 1.1)
  200. is available from gis.mit.edu (18.80.1.118). Xim reads/writes gif, xwd, xbm,
  201. tiff, rle, xim, (writes level 2 eps) and other formats and also has a library
  202. and command-line utilities for building your own applications.
  203.  
  204. ImageMagick by cristy@dupont.com is an X11 package for display and
  205. interactive manipulation of images.  Includes tools for image conversion,
  206. annotation, compositing, animation, and creating montages.  ImageMagick can
  207. read and write many of the more popular image formats (JPEG, TIFF, PNM,
  208. PostScript, ...).  Available via FTP from ftp.x.org as
  209. contrib/ImageMagick2.3.6.tar.Z. [1/94]
  210.  
  211. xtiff is a tool for viewing a TIFF file in an X window.  It was written to
  212. handle as many different kinds of TIFF files as possible while remaining
  213. simple, portable and efficient.  xtiff illustrates some common problems with
  214. building pixmaps and using different visual classes.  It is distributed as
  215. part of Sam Leffler's libtiff package and it is also available on ftp.x.org
  216. and comp.sources.x.  [dbs@decwrl.dec.com,10/90] xtiff 2.0 was announced in
  217. 4/91; it includes Xlib and Xt versions.
  218.  
  219. A version of Lee Iverson's (leei@McRCIM.McGill.EDU) image-viewing tool is
  220. available as contrib/vimage-0.9.3.tar.Z on ftp.x.org. The package also
  221. includes an ImageViewPort widget and a FileDialog widget.  [12/91;5/92]
  222.  
  223. The Andrew User Interface System (version 5.2 and later) provides an image
  224. inset which can view many image formats.  Like all Andrew insets, an image
  225. can be incorporated in a a document or sent in email via the MIME standard.
  226. The following formats can be read:  Sunraster, GIF, Xbitmap,  TIFF, Xpixmap,
  227. JPEG, PBM, XWD.
  228.  
  229. The LUG (Libreria de Utilidades Graficas) is a library of subroutines
  230. offering several routines for the manipulation of images in several different
  231. formats. The distribution includes viewers for several different platforms.
  232. The distribution is on telva.ccu.uniovi.es (156.35.31.31):
  233. /uniovi/mathdept/src/liblug-1.0.1.tar.gz.
  234.  
  235. The X Image Extension (XIE), an X Consortium standard in R6, provides
  236. facilities for transmitting displaying fax (G3, G4), TIFF, and JPEG images.
  237.  
  238. [some material from Larry Carroll (larryc@poe.jpl.nasa.gov), 5/91]
  239.  
  240. ----------------------------------------------------------------------
  241. Subject:  25)  Where can I get an X-based 3-D object viewer?
  242.  
  243. xmgf by Paul Hoad (P.Hoad@ee.surrey.ac.uk) is an interactive tool for viewing
  244. 2D and 3D objects typically in gf/OFF/NFF/IGRIP/MINICAD/SLA/DXF format
  245. Sources are on ftp.x.org.  Version 1.9.1 became available 12/93.
  246.  
  247. x3d is a V.Fast 3D Object viewer for X it needs no special hardware or or
  248. widget libraries other that X and is optimized for speed.
  249.  
  250. XGobi can be used to to view such data.
  251.     
  252. VOGLE can be used to to view such data.
  253.  
  254. ----------------------------------------------------------------------
  255. Subject:  26)  How can I change the titlebar of my xterm window?
  256.  
  257.     The solution involves sending an escape sequence to xterm which will
  258. cause it to update the property which the window manager relies upon for the
  259. string which appears in the window titlebar.
  260.     A solution is as easy as typing this in an xterm running a shell:
  261.         echo "ESC]2;TEXT^G"
  262. where ESC is the escape key, TEXT is the string you wish to have displayed,
  263. and ^G is a Control-G (the BEL character). Note that the semi-colon is
  264. demanded by more recent versions of xterm. (Some shells and editors need an
  265. escape character, typically ^V, before accepting control characters literally.)
  266.  
  267.     Here is a more complicated csh alias which changes the titlebar to the
  268. current working directory when you change directories:
  269.         alias newcd 'cd \!*; echo -n ESC]2\;$cwd^G'
  270. (for other shells e.g. ksh you will need to write a function for cd to print
  271. this value).
  272.  
  273.     The digit '2' in these strings indicates to xterm that it should
  274. change only the title of the window; to change both the title and the name
  275. used in the icon, use the digit '0' instead, and use '1' to change only the
  276. icon name.
  277.  
  278.     Note: another way to do this, which prevents an incorrect display of
  279. the local directory if a modified `cd` is used in a subshell, is to wrap the
  280. escape sequences into the PS1 prompt itself.
  281.  
  282. ----------------------------------------------------------------------
  283. Subject:  27)  Where can I find the xterm control sequences?
  284.  
  285. The best source of such information is in your R5/R6 sources in the file
  286. ctlseqs.ms (R6: xc/doc/specs/xterm/ctlseqs.ms); a PostScript version is in
  287. your R5 sources in mit/hardcopy/clients/ctlseqs.PS.Z and your R6 sources in
  288. xc/doc/hardcopy/xterm/ctlseqs.PS.Z.
  289.  
  290. Both editions of O'Reilly's Volume 3, the X User's Guide, include an R5
  291. version of the control sequences.
  292.  
  293. Other good sources of information include the R4 version of that document and
  294. also the file in the R4 sources called mit/clients/xterm/ctlseq2.txt, a
  295. compilation put together by Skip Montanaro (GE CR&D) listing the VT100
  296. sequences. It dates from R3 but is fairly accurate.  A hardcopy version was
  297. published in the December 1989 XNextEvent (the XUG newsletter).
  298.  
  299. In a pinch, a VT100 manual will do.
  300.  
  301. [last updated 10/91]
  302.  
  303. ----------------------------------------------------------------------
  304. Subject:  28)  How can I use characters above ASCII 127 in xterm ?
  305.  
  306.     In order to use special characters such as the o-umlaut, you need to
  307. "stty pass8" (you may need "stty -parenb -istrip cs8" on strictly-POSIX
  308. systems) but also to use a charcell ISO8859 font, such as
  309.     XTerm*font:     -*-*-medium-r-normal-*-*-130-*-*-c-*-iso8859-1
  310.     XTerm*boldfont: -*-*-bold-r-normal-*-*-130-*-*-c-*-iso8859-1 [The
  311. family is intentionally unspecified in this example.]
  312.  
  313. In addition, you may want to set this in your shell:
  314.     setenv LC_CTYPE iso_8859_1
  315.  
  316.     For a given character above 127, you can determine the key to use with
  317. the Alt modifier by finding the equivalent character below 127 (try using `man
  318. ascii`). For example, o-umlaut (v) is Alt-v and the section character (') is
  319. Alt-'.
  320.  
  321. [thanks to Greg Holmberg (greg%thirdi@uunet.uu.net) and Stephen Gildea
  322. (gildea@x.org); 6/92]
  323.  
  324. ----------------------------------------------------------------------
  325. Subject:  29)  Why are my xterm menus so small (sic) ?
  326.  
  327.     You are probably setting the geometry small accidentally. If you give
  328. a resource specification like this:
  329.         xterm*geometry: 80x24
  330. then you are asking for all widgets under xterm to have their geometry set to
  331. 80x24. For the main window, this is OK, as it uses characters for its size.
  332. But its popup menus don't; they are in pixels and show up small. To set only
  333. the terminal widget to have the specified geometry, name it explicitly:
  334.         xterm*VT100.geometry: 80x24
  335.  
  336. ----------------------------------------------------------------------
  337. Subject:  30)  How can I print the current X selection?
  338.  
  339.     You could paste it into an xterm after executing the lpr command.
  340. However, a program by Richard Hesketh (rlh2@ukc.ac.uk) specifically for
  341. manipulating the selection will help; e.g.
  342.     % xselection PRIMARY | lpr 
  343. finds the primary selection and prints it.
  344.     This command can be placed in a window-manager menu or in
  345. shell-scripts.  xselection also permits the setting of the selection and other
  346. properties. A version is on ftp.x.org.
  347.     Also available is ria.ccs.uwo.ca:pub/xget_selection.tar.Z, which can
  348. be adapted to do this.
  349.  
  350. ----------------------------------------------------------------------
  351. Subject:  31)  How does Xt use environment variables in loading resources?
  352.  
  353.     You can use several environment variables to control how resources are
  354. loaded for your Xt-based programs -- XFILESEARCHPATH, XUSERFILESEARCHPATH, and
  355. XAPPLRESDIR.  These environment variables control where Xt looks for
  356. application-defaults files as an application is initializing.  Xt loads at
  357. most one app-defaults file from the path defined in XFILESEARCHPATH and
  358. another from the path defined in XUSERFILESEARCHPATH.
  359.  
  360.     XAPPLRESDIR existed in R3 and before.  As of R4, the Xt developers
  361. added the more sophisticated *SEARCHPATH mechanism, but left XAPPLRESDIR in
  362. place to avoid breaking existing software.
  363.  
  364.     Set XFILESEARCHPATH if software is installed on your system in such a
  365. way that app-defaults files appear in several different directory
  366. hierarchies.  Suppose, for example, that you are running Sun's Open Windows,
  367. and you also have some R4 X applications installed in
  368. /usr/lib/X11/app-defaults. You could set a value like this for
  369. XFILESEARCHPATH, and it would cause Xt to look up app-defaults files in both
  370. /usr/lib/X11 and /usr/openwin/lib (or wherever your OPENWINHOME is located):
  371.     setenv XFILESEARCHPATH /usr/lib/X11/%T/%N:$OPENWINHOME/lib/%T/%N
  372.  
  373. The value of this environment variable is a colon-separated list of
  374. pathnames.  The pathnames contain replacement characters as follows (see
  375. XtResolvePathname()):
  376.  
  377.     %N      The value of the filename parameter, or the
  378.         application's class name.  
  379.     %T      The value of the file "type".  In this case, the
  380.         literal string "app-defaults" 
  381.     %C      customization resource (R5/R6 only) 
  382.     %D    site default value for XFILESEARCHPATH (R6 only)
  383.     %S      Suffix.  None for app-defaults.  
  384.     %L      Language, locale, and codeset (e.g. "ja_JP.EUC") 
  385.     %l      Language part of %L (e.g. "ja") 
  386.     %t      The territory part of the display's language string 
  387.     %c      The codeset part of the display's language string
  388.  
  389.     Let's take apart the example.  Suppose the application's class name is
  390. "Myterm". Also, suppose Open Windows is installed in /usr/openwin.
  391. (Notice the example omits locale-specific lookup.)
  392.     /usr/lib/X11/%T/%N        means /usr/lib/X11/app-defaults/Myterm
  393.     $OPENWINHOME/lib/%T/%N    means /usr/openwin/lib/app-defaults/Myterm
  394.  
  395.     As the application initializes, Xt tries to open both of the above
  396. app-defaults files, in the order shown.  As soon as it finds one, it reads it
  397. and uses it, and stops looking for others.  The effect of this path is to
  398. search first in /usr/lib/X11, then in /usr/openwin.
  399.  
  400.     Let's consider another example. This time, let's set
  401. XUSERFILESEARCHPATH so it looks for the file Myterm.ad in the current working
  402. directory, then for Myterm in the directory ~/app-defaults.
  403.     setenv XUSERFILESEARCHPATH ./%N.ad:$HOME/app-defaults/%N
  404.  
  405.     The first path in the list expands to ./Myterm.ad.  The second expands
  406. to $HOME/app-defaults/Myterm.  This is a convenient setting for debugging
  407. because it follows the Imake convention of naming the app-defaults file
  408. Myterm.ad in the application's source directory, so you can run the
  409. application from the directory in which you are working and still have the
  410. resources loaded properly.  NOTE: when looking for app-default files with
  411. XUSERFILESEARCHPATH, for some bizarre reason, neither the type nor file suffix
  412. is defined so %T and %S are useless.
  413.  
  414.     With R5 and R6, there's another twist.  You may specify a customization
  415. resource value.  For example, you might run the "myterm" application like
  416. this:
  417.     myterm -xrm "*customization: -color"
  418.  
  419.     If one of your pathname specifications had the value
  420. "/usr/lib/X11/%T/%N%C" then the expanded pathname would be
  421. "/usr/lib/X11/app-defaults/Myterm-color" because the %C substitution character
  422. takes on the value of the customization resource.
  423.  
  424.     The default XFILESEARCHPATH, compiled into Xt, is:
  425.         /usr/lib/X11/%L/%T/%N%C:\  (R5) 
  426.         /usr/lib/X11/%l/%T/%N%C:\  (R5)
  427.         /usr/lib/X11/%T/%N%C:\     (R5) 
  428.         /usr/lib/X11/%L/%T/%N:\
  429.         /usr/lib/X11/%l/%T/%N:\ /usr/lib/X11/%T/%N
  430.  
  431.     (Note: some sites replace /usr/lib/X11 with a ProjectRoot in this
  432. batch of default settings.)
  433.  
  434.     The default XUSERFILESEARCHPATH, also compiled into Xt, is
  435.         <root>/%L/%N%C:\  (R5) 
  436.         <root>/%l/%N%C:\  (R5)
  437.         <root>/%N%C:\     (R5) 
  438.         <root>/%L/%N:\ 
  439.         <root>/%l/%N:\
  440.         <root>/%N:
  441.  
  442.     <root> is either the value of XAPPLRESDIR or the user's home directory
  443. if XAPPLRESDIR is not set.  If you set XUSERFILESEARCHPATH to some value other 
  444. than the default, Xt ignores XAPPLRESDIR altogether.
  445.  
  446.     Notice that the quick and dirty way of making your application find
  447. your app-defaults file in your current working directory is to set XAPPLRESDIR
  448. to ".", a single dot.  In R3, all this machinery worked differently; for R3
  449. compatibilty, many people set their XAPPLRESDIR value to "./", a dot followed
  450. by a slash.
  451.  
  452. [Thanks to Oliver Jones (oj@world.std.com); 2/93.]
  453.  
  454. ----------------------------------------------------------------------
  455. Subject:  32)  How to I have xdm put a picture behind the log-in window?
  456.  
  457. R5/R6 users can specify the "setup" script that xdm runs by changing the
  458. entry in the xdm-config file (usually in /usr/lib/X11/xdm) to name a
  459. different script; the sample script distributed with the X distribution
  460. simply runs xconsole.  See the SETUP PROGRAM section of the xdm man page in
  461. R6 for precise details.
  462.  
  463. Pre-R5 versions of the xdm client could be spoofed by in changing xdm's xrdb
  464. resource in the xdm-config file to run a program to change the background
  465. before loading the resources; for example, your /usr/lib/X11/xdm/xdm-config
  466. file may add the line
  467.     DisplayManager.0.authorize: false 
  468. to permit unrestricted access to the display before log-in (beware!) and also
  469.     DisplayManager*xrdb:    /usr/lib/X11/xdm/new.xrdb 
  470. where that file does something (for all connections) along the lines of:
  471.     #!/bin/sh 
  472.     #comes in with arguments: -display :0 -load /usr/lib/X11/xdm/Xresources
  473.     /usr/bin/X11/xsetroot -display $2 -bitmap /usr/lib/X11/xdm/new.bitmap 
  474.     /usr/bin/X11/xrdb $* 
  475. Substitute xloadimage or xv for xsetroot, to taste.  Note that this is a
  476. general hack that can be used to invoke a console window or any other client.
  477.  
  478. [Thanks to Jay Bourland (jayb@cauchy.stanford.edu), 9/91]
  479.  
  480. ----------------------------------------------------------------------
  481. Subject:  33)  Why isn't my PATH set when xdm runs my .xsession file?
  482.  
  483.     When xdm runs your .xsession it doesn't source your .cshrc or .login
  484. files. You can set the path explicitly as you normally could for any SH
  485. script; or you can place all environment-setting statements in a separate file
  486. and source it from both the .xsession file and your shell configuration file;
  487. or, if you set your PATH in your .cshrc file, the normal place, you can make
  488. your .xsession have PATH set simply by making it a csh script, i.e. by starting
  489. your .xsession file off with "#!/bin/csh".
  490.     If this doesn't work, also try starting off with:
  491.     #!/bin/sh # Reset path:  PATH=`csh -c 'echo $PATH'` ; export PATH
  492.  
  493. ----------------------------------------------------------------------
  494. Subject:  34)  How do I keep my $DISPLAY when I rlogin to another machine?
  495.  
  496.     There are several ways to avoid having to do a "setenv DISPLAY ..."
  497. whenever you log in to another networked UNIX machine running X.
  498.     A trivial solution, if your account is cross-mounted on both machines,
  499. is to have your .xsession write your DISPLAY variable to a file, and then in
  500. your login dot-files to check for the existence of that that file and use its
  501. contents as your DISPLAY. [Thanks to joachim.fricker@zh014.ubs.ubs.ch.]
  502.     One solution is to use the clients/xrsh on the R5 contrib tape.  It 
  503. includes xrsh, a script to start an X application on remote machine, and
  504. xrlogin, a script to start a local xterm running rlogin to a remote machine.
  505. A more recent version is on export in xrsh-5.6.shar. [6/94]
  506.     One solution is to use the xrlogin program from der Mouse
  507. (mouse@larry.mcrcim.mcgill.edu). You can ftp caveat-emptor versions from
  508. ftp.cim.mcgill.ca (132.206.4.7) in pub/people/mouse/X/xrlogin/.  The program
  509. packages up $TERM and $DISPLAY into a single string, which is stuffed into
  510. $TERM.  rlogin then propagates $TERM normally; your .cshrc on the remote
  511. machine should contain
  512.         eval `xrlogind`
  513. where xrlogind is a program that checks $TERM and if it is of the special 
  514. format it recognizes, unpacks it and spits out setenv and unsetenv commands to 
  515. recreate the environment variables. [11/90]
  516.  
  517.     In addition, if all you need to do is start a remote X process on 
  518. another host, and you find
  519.         rsh <HOST> -n /usr/bin/X11/xterm -display $DISPLAY 
  520. too simple (DISPLAY must have your real hostname), then this version of xrsh 
  521. can be used to start up remote X processes. The equivalent usage would be 
  522.         xrsh <HOST> xterm
  523.  
  524.   #! /bin/sh
  525.   # start an X11 process on another host
  526.   # Date: 8 Dec 88 06:29:34 GMT
  527.   # From: Chris Torek <chris@mimsy.umd.edu>
  528.   # rsh $host -n "setenv DISPLAY $DISPLAY; exec $@ </dev/null >&/dev/null"
  529.   #
  530.   # An improved version:
  531.   # rXcmd (suggested by John Robinson, jr@bbn.com)
  532.   #       (generalized for sh,ksh by Keith Boyer, keith@cis.ohio-state.edu)
  533.   #
  534.   # but they put the rcmd in ()'s which left zombies again.  This
  535.   # script combines the best of both.
  536.   
  537.   case $# in
  538.   [01])  echo "Usage: $0 host x-cmd [args...]";;
  539.   *)
  540.       case $SHELL in
  541.       *csh*)  host="$1"; shift
  542.           xhost "$host" > /dev/null
  543.           rsh "$host" -n \
  544.               "setenv TERM xterm; setenv DISPLAY `hostname`:0; \
  545.               exec $* </dev/null >& /dev/null" &
  546.           ;;
  547.       *sh)
  548.           host="$1"; shift
  549.           xhost "$host" > /dev/null
  550.           rsh "$host" -n \
  551.               "TERM=xterm export TERM; \
  552.               DISPLAY=`hostname`:0 export DISPLAY; \
  553.               LD_LIBRARY_PATH=/usr/X11/lib export LD_LIBRARY_PATH; \
  554.               PATH=\$PATH:/usr/X11/bin:/usr/bin/X11:/usr/local/bin; \
  555.             export PATH; \
  556.               exec $* < /dev/null > /dev/null 2>&1" &
  557.           ;;
  558.       esac
  559.       ;;
  560.   esac
  561.  
  562. You may also want to look at programs/rstart in the R6 distribution; this
  563. remote execution protocol is intended to work in concert with session
  564. managers.
  565.  
  566. ----------------------------------------------------------------------
  567. Subject:  35)  How can I design my own font?
  568.  
  569.     One way is to use the "bitmap" client or some other bitmap-editor
  570. (e.g.  Sun's icon-editor tool, post-processed with pbmplus) to design the
  571. individual characters and then to do some large amount of post-processing to
  572. concatenate them into the BDF format. See Ollie Jones's article in the
  573. November 91 X Journal for more information.
  574.  
  575.     The R3 contrib/ area (in fonts/utils/ and in clients/xtroff) contained
  576. a number of useful utilities, including some to convert between BDF font
  577. format and a simple character format which can be edited with any text
  578. editor.
  579.  
  580.     An easier way is to use the "xfed" client to modify an existing font;
  581. a version is on the R4 or R5 X11R5 contrib tape in contrib/clients/xfed. Xfed
  582. was last seen on ftp.Informatik.Uni-Dortmund.DE [129.217.64.63], possibly as
  583. file /pub/windows/X/Diverse-X11-Sourcen/xfed.tar.Z. It can produce BDF-format
  584. fonts which can be compiled for a variety of X servers.
  585.  
  586.     IBM machines appear to have a utility "fontutil".
  587.  
  588.     The xfedor client from Group Bull permits creation of bitmaps,
  589. cursors, XPM1 pixmaps, and fonts. Binaries for common machines are on
  590. avahi.inria.fr in /pub; in addition, the sources (an old Xlib implementation)
  591. have been placed [5/91] in ftp.x.org:/contrib.
  592.  
  593.     If you are a MetaFont user you can use "mftobdf" from the SeeTeX
  594. distribution to convert PK, GF, and PXL fonts to BDF format; the distribution
  595. is on ftp.cs.colorado.edu and on ftp.x.org.
  596.     The GNU package fontutils-0.4.tar.Z on prep.ai.mit.edu includes xbfe,
  597. a font editor, and a number of utilities for massaging font formats.
  598.     The O'Reilly X Resource issue #2 contains an article on using these
  599. tools to modify a font.
  600.  
  601.     Fonts can be resized with Hiroto Kagotani's bdfresize; a new version
  602. is in ftp.cs.titech.ac.jp:/X11/contrib.  bdffont in the Andrew User Interface
  603. System (versions 5.2.2 and higher) lets you create a font or edit an existing
  604. one.
  605.  
  606. ----------------------------------------------------------------------
  607. Subject:  36)  Why does adding a font to the server not work (sic)?
  608.  
  609.     After you have built the font using your system's font-compiler,
  610. installed it in some directory, and run `mkfontdir` or your system's
  611. equivalent (e.g. bldfamily for OpenWindows) in that directory, be sure to use
  612. `xset +fp $dir` to add that full path-name to the server's font-path, *or* if
  613. the directory is already in the path, use `xset fp rehash` so that the new
  614. fonts in that directory are actually found; it is this last step that you're
  615. probably leaving out. (You can also use `xset q` to make sure that that
  616. directory is in the path.)
  617.     Sometimes your "xset +fp $dir" command fails with a BadValue error:
  618.         X Error of failed request:BadValue
  619.             (integer parameter out of range for operation) 
  620.         Major opcode of failed request:  51 (X_SetFontPath)
  621.  
  622.     This means the X server cannot find or read your font directory, or
  623. that your directory does not look like a font directory to the server.  (The
  624. mention of an "integer parameter" in the message is spurious.)
  625.  
  626. -- Is the font directory you're specifying readable from the SERVER's file
  627.    system?  Remember, it's the server, not the client, which interprets your
  628.    font directory.  Trouble in this area is especially likely when you issue
  629.    an xset command with shell metacharacters in it (e.g. "xset +fp ~/myfonts")
  630.    and the server is an X terminal or managed by xdm.
  631.  
  632. -- Is the directory really a font directory?  If you're running the sample X
  633.    server (or most varieties of vendor servers) look in the directory for the
  634.    file "fonts.dir".  If you can't find that file, run mkfontdir(1). (If you're
  635.    running OpenWindows, look for the file "Families.list".  If you can't find
  636.    it, run bldfamily(1).)
  637.  
  638. -- If you're in a site where some people run X11Rn servers and others run a
  639.    proprietary server with nonstandard font formats (OpenWindows, for
  640.    example), make sure the font directory is right for the server you're
  641.    using.  Hint: if the directory contains .pcf and/or .snf files, it won't
  642.    work for Open Windows.  If the directory contains .ff and/or .fb files, it
  643.    won't work for X11Rn.
  644.  
  645. [thanks to der Mouse (mouse@larry.mcrcim.mcgill.edu) and to Oliver Jones
  646. (oj@pictel.com); 7/92 ]
  647.  
  648. Note: some systems (e.g. X11R4 on AIX) need a trailing '/' in the directory
  649. name.
  650.  
  651. ----------------------------------------------------------------------
  652. Subject:  37)  How do I convert a ".snf" font back to ".bdf" font?
  653.  
  654.     A tool called "snftobdf 1.6" can do this; it is available as:
  655.         ftp.x.org:contrib/snftobdf-1.6.tar.Z
  656.         crl.nmsu.edu:pub/misc/snftobdf-1.6.tar.Z
  657.  
  658. ----------------------------------------------------------------------
  659. Subject:  38)  What is a general method of getting a font in usable format?
  660.  
  661.     der Mouse's getbdf is one solution; it connects to a server and
  662. produces a .BDF file for any font the server is willing to let it.  It can be
  663. used as an anything-to-BDF converter, but requires access to a server that can
  664. understand the font file, thus is both more and less powerful than other tools
  665. such as snftobdf. getbdf is on 132.206.78.1 in X/getbdf.c or available via mail
  666. from mouse@larry.McRCIM.McGill.EDU. [5/91]
  667.     In addition, the R5/R6 program "fstobdf" can produce bdf for any font
  668. that the R5 server has access to.
  669.  
  670. ----------------------------------------------------------------------
  671. Subject:  39)  How do I use DECwindows fonts on my non-DECwindows server?
  672.  
  673.     The DECwindows fonts typically don't exist on a non-DEC installation,
  674. but rewrite rules can be used to alias fonts used by DECwindows applications
  675. to standard X fonts of similar characteristics and size. Pick up the file
  676. contrib/DECwindows_on_X11R4_font.aliases from ftp.x.org; this file is for a
  677. sample R4 server.  It can also serve as a starting point for creating a
  678. similar aliases file for the Open Windows server or other servers which do not
  679. use the X Consortium's font scheme.
  680.  
  681. ----------------------------------------------------------------------
  682. Subject:  40)  How do I get a font name from the structure?
  683.  
  684. You can't, although you can build up the font properties to rebuild a
  685. description of the font in XLFD format, which should be sufficient.
  686.  
  687. This routine is derived from source provided by John L. Cwikla 
  688. (cwikla@wri.com).
  689.  
  690. #include <X11/Xlib.h>
  691.  
  692. #include <stdio.h>
  693.  
  694. /* Stolen from mit/fonts/lib/font/bitmap/bitscale.c */
  695.  
  696. enum scaleType
  697. {
  698.     atom, pixel_size, point_size,
  699.     resolution, resolution_x, resolution_y, average_width,
  700.     scaledX, scaledY, unscaled, scaledXoverY, uncomputed,
  701. };
  702.  
  703. typedef struct _fontProp
  704. {
  705.     char       *name;
  706.     Atom        atom;
  707.     enum scaleType type;
  708.     char found;
  709. } fontProp;
  710.  
  711. static fontProp fontNamePropTable[] = 
  712. {
  713.     { "FOUNDRY", 0, atom, 0},
  714.     { "FAMILY_NAME", 0, atom, 0},
  715.     { "WEIGHT_NAME", 0, atom, 0},
  716.     { "SLANT", 0, atom, 0},
  717.     { "SETWIDTH_NAME", 0, atom, 0},
  718.     { "ADD_STYLE_NAME", 0, atom, 0},
  719.     { "PIXEL_SIZE", 0, pixel_size, 0},
  720.     { "POINT_SIZE", 0, point_size, 0},
  721.     { "RESOLUTION_X", 0, resolution_x, 0},
  722.     { "RESOLUTION_Y", 0, resolution_y, 0},
  723.     { "SPACING", 0, atom, 0},
  724.     { "AVERAGE_WIDTH", 0, average_width, 0},
  725.     { "CHARSET_REGISTRY", 0, atom, 0},
  726.     { "CHARSET_ENCODING", 0, atom, 0},
  727. #if 0
  728.     { "FONT", 0, atom, 0},
  729. #endif /* 0 */
  730. };
  731.  
  732. #define NUMITEMS(arr) ((int) (sizeof(arr) / sizeof(arr[0])))
  733.  
  734. void regenerateFontName(Display *display, XFontStruct *xfs)
  735. {
  736.     int i;
  737.     unsigned long retValue;
  738.     if (xfs)
  739.     {
  740.          for(i=0;i<NUMITEMS(fontNamePropTable); i++)
  741.         {
  742.                 fontNamePropTable[i].atom = 
  743.                 XInternAtom(display, fontNamePropTable[i].name, 0);
  744.             if (XGetFontProperty(xfs, fontNamePropTable[i].atom, &retValue))
  745.             {
  746.                 switch(fontNamePropTable[i].type)
  747.                 {
  748.                     case atom:
  749.                         printf("%s", XGetAtomName(display, (Atom)retValue));
  750.                         break;
  751.  
  752.                     case pixel_size:
  753.                     case point_size:
  754.                     case resolution:
  755.                     case resolution_x:
  756.                     case resolution_y:
  757.                     case average_width:
  758.                     case scaledX:
  759.                     case scaledY:
  760.                     case unscaled:
  761.                     case scaledXoverY:
  762.                     case uncomputed:
  763.                             printf("%d", retValue);
  764.                             break;
  765.                 }
  766.             }
  767.             else
  768.                 printf("*");
  769.  
  770.             if (i != (NUMITEMS(fontNamePropTable)-1))
  771.                 printf("-");
  772.             else
  773.                 printf("\n");
  774.         }
  775.     }
  776. }
  777.  
  778.  
  779. ----------------------------------------------------------------------
  780. Subject:  41)  How can I set backgroundPixmap in a defaults file? (What is XPM?) 
  781. I want to be able to do something like this:
  782.     xclock*backgroundPixmap:      /usr/include/X11/bitmaps/rootweave
  783.  
  784.     You can't do this. The backgroundPixmap resource is a pixmap of the
  785. same depth as the screen, not a bitmap (which is a pixmap of depth 1).
  786. Because of this, writing a generic String to Pixmap converter is impossible,
  787. since there is no accepted convention for a file format for pixmaps.
  788. Therefore, neither the X Toolkit or the Athena widget set define a String to
  789. Pixmap converter; because there is no converter you cannot specify this value
  790. as a resource.  The Athena widget set does define a String to Bitmap converter
  791. for use in many of its widgets, however.  [courtesy Chris D.  Peterson (now
  792. kit@ics.com), 4/90]
  793.  
  794. However:
  795.     A specific converter which encapsulates much of the functionality of
  796. the xloadimage package by Jim Frost was posted 12/90 by Sebastian Wangnick
  797. (basti@unido.informatik.uni-dortmund.de); it permits loading of a number of
  798. image formats as a pixmap.
  799.  
  800.     The leading general-purpose format for pixmaps is the XPM format used
  801. by Groupe Bull in several of its programs, including the GWM window manager,
  802. by AT&T in its olpixmap editor, and by ICS in its interface builder. XPM
  803. distribution, available on ftp.x.org as contrib/xpm.tar.Z, includes
  804. read/write routines which can easily be adapted to converters by new widgets
  805. which want to allow specification of pixmap resources in the above manner.
  806. See information on the xpm-talk mailing list above. XPM 3.4c became available
  807. in 7/94 and is available from ftp.x.org (contrib/libraries/xpm-3.4c.tar.gz)
  808. and avahi.inria.fr; an older version is on the R5 contrib tape. [A set of XPM
  809. icons collected by Anthony Thyssen (anthony@kurango.cit.gu.edu.au) is on
  810. ftp.x.org in contrib/AIcons; the hobbes-icon-xpm3 collection of XPM icons is
  811. on hobbes.nmsu.edu./]
  812.  
  813. ----------------------------------------------------------------------
  814. Subject:  42)  Why can't I override translations? Only the first item works. (sic)
  815.  
  816.     You probably have an extra space after the specification of the first 
  817. item, like this:
  818.     basic*text.translations:  #override \
  819.     Ctrl<Key>a:    beginning-of-line() \n\     
  820.     Ctrl<Key>e:    end-of-line()
  821.                           ^ extra space
  822. The newline after that space is ending the translation definition.
  823. [Thanks to Timothy J. Horton, 5/91]
  824.  
  825. ----------------------------------------------------------------------
  826. Subject:  43)  How can I have a clock show different timezones?
  827.  
  828.     One solution is xchron, in Volume 6 of comp.sources.x, which can show
  829. the time for timezones other than the local one.
  830.     sunclock on ftp.x.org displays a world map with sun/dark areas and
  831. local and UTC time.
  832.     The OpenWindows clock has a TimeZone property.  Modifications to the
  833.     Xaw clock widget to support hour and minute offsets were posted by
  834. David Herron (david@twg.com).
  835.     A patch for the clock coming with the Xaw3D widgets introduces
  836. resources hourOffset, minuteOffset, gmt; it can be found at
  837. ftp.wu-wien.ac.at:pub/src/X11/wafe/xaw3d.Clock.patch.
  838.  
  839.     Alternatively, you can probably set the timezone in the shell from
  840. which you invoke the xclock or oclock, or use a script similar to this:
  841.     #!/bin/sh 
  842.     TZ=PST8PDT xclock -name "La-La" 2> /dev/null &
  843.     TZ=EST5EDT xclock -name "Nyah-Nyah" 2> /dev/null &
  844.  
  845. ----------------------------------------------------------------------
  846. Subject:  44)  I have xmh, but it doesn't work. Where can I get MH?
  847.  
  848. The xmh mail-reader requires the Rand MH mail/message handling system, which
  849. is not part of the UNIX software distribution for many machines.  A list of
  850. various ftp, uucp, e-mail and US-mail sites for both xmh and MH is given in
  851. the monthly MH FAQ; one source is ics.uci.edu.
  852.  
  853. ----------------------------------------------------------------------
  854. Subject:  45)  Why am I suddenly unable to connect to my Sun X server?  
  855. After a seemingly random amount of time after the X server has been started,
  856. no other clients are able to connect to it.
  857.  
  858.     The default cron cleanup jobs supplied by Sun (for 4.0.3, at least)
  859. delete "old" (unreferenced) files from /tmp -- including /tmp/.X11-unix, which
  860. contains the socket descriptor used by X. The solution is to add "!  -type s"
  861. to the find exclusion in the cron job.  [10/90]
  862.  
  863. ----------------------------------------------------------------------
  864. Subject:  46)  Why don't the R5 PEX demos work on my mono screen?
  865.  
  866. The R5 sample server implementation works only on color screens, sorry.
  867.  
  868. ----------------------------------------------------------------------
  869. Subject:  47)  How do I get my Sun Type-[45] keyboard fully supported by Xsun?
  870.  
  871. The R6 Xsun supports Sun Type-[45] keyboards; see the KEYBOARDS section of
  872. the Xsun man page.
  873.  
  874. Many users wants the Num Lock key to light the Num Lock LED and have the
  875. appropriate effect on the numeric keypad.  The R5 Xsun server as distributed
  876. by the Consortium doesn't do this but there are two different patches
  877. available.
  878.  
  879. The first patch is written by Jonathan Lemon and fixes the Num Lock related
  880. problems. It is available from ftp.x.org in the file
  881. contrib/Xsun-R5.numlock_patch.Z .
  882.  
  883. The second is written by Martin Forssen and fixes the Num Lock and Compose
  884. keys and adds support for the different national keyboard layouts for Type-4
  885. and Type-5 keyboards. This patch is available from ftp.x.org in
  886. contrib/sunkbd.930314.tar.Z or via email from maf@dtek.chalmers.se.
  887.  
  888. [thanks to Martin Forssen (maf@dtek.chalmers.se or maf@math.chalmers.se),
  889. 8/92]
  890.  
  891. A set of patches by William Bailey (dbgwab@arco.com) was posted to newsgroups
  892. 11/92 to provide support for the Type-5 keyboard.
  893.  
  894. (Note that use of xmodmap to map function and arrow keys can make the Type 5
  895. keyboard more useful without needing these patches.)
  896.  
  897. ----------------------------------------------------------------------
  898. Subject:  48)  How do I report bugs in X?
  899.  
  900.     Generally, report bugs you find to the organization that supplied you
  901. with the X Window System.  If you received the R6 source distribution
  902. directly from the Consortium, please read the file xc/bug-report for
  903. instructions.  [Look in mit/bug-report for R5, mit/doc/bugs/bug-report in
  904. R4.]
  905.  
  906. [Thanks to Stephen Gildea <gildea@x.org>, 5/91; 12/91]
  907.  
  908. ----------------------------------------------------------------------
  909. Subject:  49)  Why do I get "Warning: Widget class version mismatch"?
  910.  
  911.     This error, which typically goes on to say, "widget 11004 vs.
  912. intrinsics 11003" indicates that the header files you included when building
  913. your program didn't match the header files that the Xt library you're linking
  914. against was built with; check your -I include path and -L link-path to be
  915. sure.
  916.     However, the problem also occurs when linking against a version of the
  917. X11R4 Xt library before patch 10; the version number was wrong.  Some Sun OW
  918. systems, in particular, were shipped with the flawed version of the library,
  919. and applications which link against the library typically give the warnings
  920. you have seen.
  921.  
  922. ----------------------------------------------------------------------
  923. Subject:  50)  Why does my SPARC say "Mapping cg3c: No such device or address"?
  924.  
  925.        The R6 sun ddx uses information returned by the device driver to do
  926. the right thing, so this problem should go away with R6, but the X Consortium
  927. does not have this configuration available to test it.
  928.  
  929.     This problem comes up on Sun SPARC Classic machines.  There is no X
  930. Consortium fix for this problem, but the correction can be made to X11R5
  931. sources by editing the file "src/mit/server/ddx/sun/sunCG3C.c". Find the
  932. second buffer definition that looks like this:
  933.  
  934.    typedef struct cg3bc {
  935.    #ifdef sparc
  936.            u_char mpixel[128*1024];         /* bit-per-pixel memory */
  937.            u_char epixel[128*1024];         /* enable plane */
  938.    #endif
  939.            u_char cpixel[CG3B_HEIGHT][CG3B_WIDTH];   /* byte-per-pixel memory */
  940.    } CG3BC, CG3BCRec, *CG3BCPtr;
  941.  
  942. and change the instances of "128*1024" to "96*1024". Then recompile the
  943. X server.
  944.  
  945. [thanks to Russ Poffenberger (poffen@San-Jose.ate.slb.com)]
  946.  
  947. ----------------------------------------------------------------------
  948. Subject:  51)  Where can I find a dictionary server for xwebster?
  949.  
  950.     Webster's still owns the copyright to the on-line copies of Webster's
  951. Dictionary which are found at various (university) sites. After it became
  952. aware that these sites were then acting as servers for other sites running
  953. xwebster and gnuemacs-webster, it asked that server sites close off external
  954. access.
  955.     [The NeXT machine apparently is also licensed to have the dictionary.
  956.     A Webster daemon for NeXT machines is available from
  957. iuvax.cs.indiana.edu (129.79.254.192) in "pub/webster/NeXT-2.0".]
  958.     Unless you want to get a legal on-line copy yourself or can find a
  959. site which can grant you access, you are probably out of luck.
  960.  
  961.     However, if you are a legitimate site, you'll want to pick up the
  962. latest xwebster, as-is on ftp.x.org:contrib/xwebster.tar.Z [10/91]; the file
  963. xwebster.README includes discussions of the availability, illegality, and
  964. non-availability of dictionary servers.
  965.  
  966. [courtesy steve@UMIACS.UMD.EDU (Steve Miller) and mayer@hplabs.hp.com (Niels
  967. Mayer) 11/90]
  968.  
  969. ----------------------------------------------------------------------
  970. Subject:  52)  TOPIC: OBTAINING X AND RELATED SOFTWARE AND HARDWARE
  971. ----------------------------------------------------------------------
  972. Subject:  53)  Is X public-domain software?
  973.  
  974.     No. The X software is copyrighted by various institutions and is not
  975. "public domain", which has a specific legal meaning. However, the X
  976. distribution is available for free and can be redistributed without fee.
  977.     Contributed software, though, may be placed in the public domain by
  978. individual authors.
  979.  
  980. ----------------------------------------------------------------------
  981. Subject:  54)  How compatible are X11R3, R4, R5, R6? What changes are there?
  982.  
  983. The Release Notes for each release of X11 specify the changes from the
  984. previous release.  The X Consortium tries very hard to maintain compatibility
  985. across releases.  In the few places where incompatible changes were necessary,
  986. details are given in the Release Notes.  Each X11 distribution site on the
  987. network also offers the Release Notes that go with the release they offer; the
  988. file typically can be found at the top of the distribution tree.
  989.  
  990. [Stephen Gildea, 1/92]
  991.  
  992. Things that are incompatible in R6:
  993.     - R6 Xt requires R6 Xlib.
  994.     - R6 Xaw no longer has Clock, Logo, and Mailbox widgets.
  995.     - R6 Xt retains binary compatibility with R5 for all data
  996.      structures except WMShellPart.  See section 13.4 of the Xt
  997.      specification for more details.
  998. [Dave Wiggins (dpw@x.org)]
  999.  
  1000. The comp.windows.x.intrinsics FAQ-Xt lists Xt differences among these
  1001. versions.
  1002.  
  1003. ----------------------------------------------------------------------
  1004. Subject:  55)  When is X11R6 available?
  1005.  
  1006. The tentative schedule (5/94) is:
  1007.     Public Release: May 2, 1994
  1008.     Contrib Release: June 20, 1994
  1009.  
  1010. That is, right now.
  1011.  
  1012. ----------------------------------------------------------------------
  1013.  
  1014. David B. Lewis                     faq%craft@uunet.uu.net
  1015.  
  1016.         "Just the FAQs, ma'am." -- Joe Friday 
  1017.  
  1018. -- 
  1019. David B. Lewis            Temporarily at but not speaking for ICS
  1020. day: dbl@ics.com        evening: dbl%craft@uunet.uu.net
  1021.  
  1022.