home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk1.iso / answers / open-look / 01-general next >
Text File  |  1994-09-24  |  57KB  |  1,242 lines

  1. Newsgroups: comp.windows.open-look,alt.toolkits.xview,comp.windows.news,alt.sys.sun,alt.toolkits.intrinsics,comp.answers,alt.answers,news.answers
  2. Path: bloom-beacon.mit.edu!grapevine.lcs.mit.edu!uhog.mit.edu!europa.eng.gtefsd.com!howland.reston.ans.net!cs.utexas.edu!utnut!utzoo!sq!lee
  3. From: lee@sq.sq.com (Liam Quin)
  4. Subject: OPEN LOOK GUI FAQ 01/04: General
  5. Message-ID: <liamfaq-ol1-30@sq.com>
  6. Followup-To: poster
  7. Summary: overview of OPEN LOOK Graphical User Interface
  8. Supersedes: <liamfaq-ol1-29@sq.com>
  9. Reply-To: lee@sq.com (Liam R. E. Quin)
  10. Organization: SoftQuad Inc., Toronto, Canada
  11. Date: Sat, 24 Sep 94 22:06:09 GMT
  12. Approved: news-answers-request@MIT.EDU
  13. Expires: 24 Oct 1994 02:49:16 GMT
  14. Lines: 1225
  15. Xref: bloom-beacon.mit.edu comp.windows.open-look:4821 alt.toolkits.xview:1882 comp.windows.news:865 alt.sys.sun:2145 comp.answers:7443 alt.answers:4625 news.answers:26254
  16.  
  17. Archive-name: open-look/01-general
  18.  
  19.  
  20. Frequently-asked questions about the OPEN LOOK Graphical User Interface.
  21.  
  22. If your question isn't here, please try (at *least*)
  23.     man openwin
  24.     man xnews
  25.     man 7 xview
  26. and looking in the appropriate manuals listed in the Bibliography below
  27. before posting to the comp.windows.open-look, comp.windows.x or
  28. alt.toolkits.xview newsgroups and/or their corresponding mailing lists.
  29.  
  30. Frequently Asked Questions for X11 are posted to comp.windows.x monthly.
  31.  
  32. This is version: $Revision: 1.50 $; Last posted version:  1.48
  33.  
  34. Contents: (in rn and trn you can use control-G to go to the next topic)
  35.  
  36.     Subject: Terminology: OPEN LOOK, OpenWindows, X11, XView, (MO)OLIT, Motif
  37.     Subject: The COSE agreement
  38.     Subject: Window Managers -- olwm, olvwm
  39.     Subject: OpenWindows, Terminals, and Other Displays
  40.     Subject: Configuration Files: Getting started with OpenWindows
  41.     Subject: Key Bindings, Cut and Paste
  42.     Subject: Applications: Finding Out...
  43.     Subject: DeskSet, Calendar Manager, etc.
  44.     Subject: Trouble Shooting: Strange Error Messages
  45.     Subject: Trouble Shooting: It Won't Let Me Type
  46.     Subject: Trouble Shooting: Not authorized to use display
  47.     Subject: Trouble Shooting: other common problems
  48.     Subject: Trouble Shooting: XView problems
  49.     Subject: Fonts
  50.     Subject: Environment Variables
  51.     Subject: Where Can I get It? Ftp, implementations, etc...
  52.     Subject: Bibliography -- books, manuals, journals, papers, beer-mats
  53.     Subject: Getting this File, Revision History, Recent Changes
  54.  
  55.  
  56. Subject: Terminology: OPEN LOOK, OpenWindows, X11, XView, OLIT, MOOLIT, Motif
  57.  
  58. @ What is OPEN LOOK?
  59.     OPEN LOOK is a specification of a Graphical User Interface (GUI).
  60.     A GUI determines the `look and feel' of a system -- the shape of
  61.     windows, buttons and scroll-bars, how you resize things, how you
  62.     edit files, etc.
  63.  
  64.     The OPEN LOOK GUI is specified, developed and maintained jointly by
  65.     Sun Microsystems and AT&T (or USL?).
  66.  
  67.     See Also:
  68.     Bibliography
  69.  
  70. @ What is OpenWindows?
  71.     OpenWindows is a windowing environment that conforms to the OPEN LOOK
  72.     Graphical User Interface Specifications.  It's compatible with the
  73.     X11 window system from MIT as well as (currently) Sun's NeWS and SunView,
  74.     so you can intermix programs written for any of those systems.
  75.     It comes from Sun and also with System V Release 4 from certain vendors.
  76.     OpenWindows is sometimes also called openwin or xnews, after the
  77.     program used to start it and the main executable itself, respectively.
  78.     It should not be called `Windows' or 'OPEN LOOK' or `OpenLook', as
  79.     these terms are either wrong or apply to something else.
  80.     A commerical OpenWindows source licence costs about $5,000 for the server,
  81.     plus about $25,000 for DeskSet, and another $40,000 for ToolTalk.
  82.     The current versions of OpenWindows for various platforms are:
  83.     SunOS 4.1.1 on Sun 3: 2.0
  84.     Solaris 1.x (SunOS 4.1.x) on SPARC: 3.0
  85.     Solaris 2.0 (SunOS 5) on SPARC: 3.0.1
  86.  
  87.     See Also:
  88.     Mixing X11 and OpenWindows
  89.     Where can I get it?
  90.  
  91. @ What are OLIT, XView and TNT?
  92.     These are all toolkits for programmers to use in developing programs
  93.     that conform to the OPEN LOOK specifications.  See the Bibliography
  94.     for documentation on the individual toolkits.  Here's a brief summary:
  95.  
  96.     OLIT was AT&T's OPEN LOOK Intrinsics Toolkit for the X Window system;
  97.     it used a widget set, and was probably the easiest for people who were
  98.     already X11/Xt programmers to learn.  You could buy the source from AT&T,
  99.     although you didn't get the same version tht Sun ship.  Sun includes the
  100.     OLIT library in OpenWindows (q.v.); it is also often included in
  101.     System V Release 4.  It was written in C.  OLIT support passed to USL
  102.     (then a division of AT&T, now owned by Novell), who replaced it with
  103.     MoOLIT (q.v.).
  104.     Note that because of the nature of Xt subclassing, you will probably
  105.     want or need OLIT source in order to develop a large application or
  106.     anything else that uses subclasses.
  107.     [see the proceedings of the 1991 X Technical Conference]
  108.     OLIT was until recently Sun's recommended toolkit, although until
  109.     Solaris 2 was released OLIT lacked a long way behind XView (q.v.) in
  110.     many important areas.
  111.  
  112.     XView is Sun's toolkit for X11, written in C.  XView is similar in
  113.     programmer interface to SunView.  There's even a shell script to help
  114.     migrate source code from SunView to XView.     XView is often said to be
  115.     the easiest toolkit to learn if you are not familiar with X Windows.
  116.     The XView toolkit is included in OpenWindows, and full source is
  117.     available by anonymous ftp from export.lcs.mit.edu (and elsewhere).
  118.     The current version of XView from Sun is 3.2.  The XView toolkit is
  119.     still supported by Sun, although few if any enhancements beyond version
  120.     3.2 should be expected.
  121.  
  122.     The NeWS Toolkit (TNT) was an object-oriented programming system based
  123.     on the PostScript language and NeWS.  TNT implements many of the
  124.     OPEN LOOK interface components required to build the user interface of
  125.     an application.  It's included in OpenWindows up to release 3.2, but is
  126.     not supported (and will not run) under OpenWindows 3.3 (based on X11R5).
  127.  
  128.     The current version of TNT from Sun is 3.1; Release 3 contains some
  129.     incompatibilities with `tNt' 1.0 and TNT 2.0, but Sun were committed to
  130.     supporting the API, at least until they released Solaris 2.3 and `replaced'
  131.     it with Display PostScript.  Wail.
  132.     Sun currently asserts that it is committed to OLIT, however.
  133.     Correction: Sun is now committed to COSE, which is committed to a new
  134.     Motif toolkit, and OLIT support will presumably be dropped until the
  135.     wind changes again.
  136.     Note:
  137.     Solaris 2.3 does not include Motif: SMCC is shipping Motif separately
  138.     as part of the Solaris Software Developer's Kit.  In addition, SMCC
  139.     is shipping an unbundled version of the Motif toolkit.
  140.  
  141.     The C++ User Interface Toolkit (UIT) consists of an object-oriented C++
  142.     class library layered on top of XView and a tool to generate code from
  143.     DevGuide 3 GIL files.  The UIT also includes features that simplify
  144.     event management and the use of PostScript and color.  It is said to be
  145.     compatible with OpenWindows V2 and V3, and presumably beyond, since the
  146.     release mentions that it works on Solaris 2.
  147.     UIT is not an official Sun-supported product but an ongoing project of
  148.     various people within Sun.  It can be found on export.lcs.mit.edu in
  149.     the MIT contrib directory as UITV2.tar.Z
  150.  
  151. @ Where does Motif fit in?
  152.     Motif is an alternative Graphical User Interface that was developed by OSF.
  153.     It has a `look and feel' reminiscent of Microsoft Windows and the OS/2
  154.     Presentation Manager.  There are no non-commercial Motif toolkits
  155.     available, and the Motif source by OSF is fairly expensive.
  156.     Fresco (in X11R6) will have a Motif-like user interface; TK, based on
  157.     the tcl language, looks a little like Motif.
  158.     There are commercial XView to Motif translation tools, such as Accent's.
  159.     OSF/Motif will be included in COSE (q.v.) in a somewhat changed form.
  160.  
  161. @ What is MoOLIT?
  162.     MoOLIT is a version of OLIT from AT&T/USL that lets users choose between
  163.     a Motif and an OPEN LOOK UI feel at run-time.  It will be part of System V
  164.     Release 4.2.  Contact: Joanne Newbauer, jo@usl.com, (908) 522-6677
  165.  
  166. @ What about that Display PostScript thing?
  167.     Sun and Adobe agreed that Sun include the DPS extension to X in
  168.     OpenWindows, and this is in Solaris 2.3 and later.
  169.     Unfortunately, this has also meant dropping the NeWS server, and hence
  170.     the NeWS toolkit (TNT), with what many consider to be a significant loss
  171.     of functionality and ease of programmability as a result.  On the other
  172.     hand, a number of commercial applications such as Adobe Illustrator and
  173.     Adobe PhotoShop have being ported to the Sun.
  174.     See the Solaris Porting guide [see Bibliography below] for a few more
  175.     details.
  176.  
  177. Subject: The COSE agreement
  178.  
  179. @ What is COSE?
  180.     The Common Operating System Environment is an agreement by several of the
  181.     largest Unix manufacturers, including e.g. Sun, HP, IBM and SCO, to provide
  182.     a compatible windowing environment (CDE) across all platforms.  It's widely
  183.     rumoured that only fear of Windows NT could have brought this on.
  184.  
  185. @ What's it like?
  186.     A snapshot of the Common Desktop Environment for HP, Sun, IBM, USL, SCO
  187.     has been released on CD/ROm and was given out at the CDE develoer's
  188.     conference.
  189.  
  190.     Some of the features include:
  191.     * Sun's Mailtool and Calander Manager
  192.     * Sun's ToolTalk protocol for desktop interoperability
  193.     * IXI's desktop file manager
  194.     * HP's VUE desktop manager - a little like olvwm without the map
  195.     * a Motif toolkit that offers all of the OPEN LOOK UI controls and
  196.       window decorations.  It isn't clear to me in what way it's still Motif.
  197.     * various games and demonstrations, `the entertainment value of these
  198.       should not be underestimated' :-)
  199.     * Sun's F3 outline font technology [actually I don't see this yet]
  200.  
  201. @ Why would I want it?
  202.     If you're using OpenWindows you probably don't, particularly, but you're
  203.     not the targeted market.  If you are not yet using X11 at all, or if you
  204.     get fed up of all the differences between the various vendors' X11
  205.     environments, you'll probably be interested.
  206.  
  207. @ When can I have it?
  208.     Not until the end of 1994, in order to give Windows NT a fair start :-)
  209.  
  210.  
  211. Subject: Window Managers -- olwm, olvwm
  212.  
  213. @ What are olwm and olvwm?
  214.     They are window managers.  A window manager is the part of the X Window
  215.     system (e.g. X11) that is responsible for deciding how to lay out windows
  216.     on the screen, and for managing the user's interaction with the windows.
  217.  
  218.     Olwm is the standard OPEN LOOK window manager.
  219.     It's included with all of the OpenWindows (q.v.) implementations, and
  220.     you can also get the source by ftp, since Sun donated it.
  221.  
  222.     Olvwm is a version of olwm that manages a `virtual desktop' (hence the
  223.     `v' in its name).  It shows a little map on the screen, with the
  224.     currently displayed area represented by a little rectangle.     You can
  225.     move around by dragging the rectangle or with the arrow keys.  This
  226.     lets you run several clients (applications) and move the display around
  227.     from one to the other.  Olvwm was derived by Scott Oaks from the Open-
  228.     Windows 3 olwm; you need to have libolgx (from XView 3.x) to compile it.
  229.     Get olvwm from an ftp site such as export.lcs.mit.edu (in the contrib
  230.     directory; watch out for any patches there).
  231.  
  232. @ Can I use my favorite window manager with OpenWindows instead of olwm?
  233.     Yes.  If you use twm, for example, or mwm, you won't be able to use
  234.     the Pin and Unpin feature of olwm, and you (probably) won't see the
  235.     footers some windows use to display certain messages.
  236.  
  237.     If you use twm, you'll want to use the f.delete function to unpin menus
  238.     and get rid of programs that don't have a `quit' button when not run
  239.     under olwm.
  240.     For twm, put this in your $HOME/.twmrc:
  241.     LeftTitleButton "target" = f.delete
  242.     where "target" is a 16x16 icon from /usr/include/X11/bitmaps.
  243.     Alternatively, try
  244.     # Add a menu to each window managed by twm or tvtwm
  245.     LeftTitleButton ":menu" = f.menu "OL.menu"
  246.  
  247.     menu "OL.menu" {
  248.         "Quit"         f.delete
  249.     }
  250.  
  251.     For mwm, you can double-click on the menu icon on the left of the title
  252.     bar to dismiss a pop-up window (I am told).  XView windows might simply
  253.     iconify themselves; there's a C work-round for this involving editing
  254.     the program to make the windows `transient'.
  255.  
  256.     See the manual page for your window manager (twm, etc).
  257.  
  258. Subject: OpenWindows, Terminals, and Other Displays
  259.  
  260. @ Can I use olwm and olvwm without OpenWindows or on an X Terminal?
  261.     The OpenWindows xnews server combines SunView, NeWS (PostScript) and X11.
  262.     This means that it can run programs compiled for any of those systems.
  263.     Unfortunately, it means that some OpenWindows programs need either NeWS
  264.     or SunView support, and thus won't run on an X terminal.  This includes
  265.     pageview in particular.
  266.  
  267.     You can use olwm or olvwm (see above) on an X terminal or a non-Open-
  268.     Windows display, and most OPEN LOOK clients (e.g. OLIT or XView ones)
  269.     will work perfectly well.  You may find that you get complaints about
  270.     fonts not being found.  If so, see the Fonts section below.
  271.     If you are running the window manager built-in to an NCD terminal, you
  272.     may have problems with input focus; setting *Input: True in the terminal's
  273.     XDefault file in /usr/lib/X11/xdm may or may not help.
  274.  
  275.  
  276. Subject: Configuration Files: Getting started with OpenWindows
  277.      
  278. @ What configuration files do I need to know about?
  279.  
  280.     .xinitrc and .xsessionrc
  281.  
  282.     The first time you run OpenWindows, a .xinitrc file will be created in
  283.     your login directory ($HOME).  If it already exists, you might have to
  284.     edit it somewhat; it's simplest to move it and any other old X11 files
  285.     you have to another directory, and then merge the old and new files.
  286.  
  287.     If your site uses xdm, you should use .xsession instead of .xinitrc,
  288.     since xdm doesn't look at your .xinitrc file.
  289.  
  290.     .openwin-init, .openwin-menu and .openwin-sys
  291.  
  292.     These are optional files you can create in your $HOME directory,
  293.     depending on which version of olwm or olvwm you use.
  294.     Look in $OPENWINHOME/lib (normally /usr/openwin/lib) for these files
  295.     without the leading . and copy any you want to change.  You may need
  296.     to edit your .xinitrc to get them recognized.  If you are not on an
  297.     X terminal, you will want to run a console window (such as cmdtool -C,
  298.     shelltool -C, xterm -C) or Chuck Musciano's "contool" program so that
  299.     system output will be directed there instead of writing over your screen.
  300.     Note that .openwin-sys is not executed unless you edit .xinitrc.
  301.  
  302.     .Xdefaults
  303.  
  304.     You can put X Windows resource specifications in here.  In particular,
  305.     it is a good idea to include at least:
  306.     OpenWindows.FocusLenience:    true
  307.     *Input: TRUE
  308.     These allow non-ICCCM-compliant programs to receive input even if they
  309.     forget to ask for it.
  310.  
  311.     Props, the program that runs when you select `properties' from the default
  312.     root menu under olwm or olvwm, writes your choices into .Xdefaults.
  313.     Don't put comments in .Xdefaults, since `props' deletes them.
  314.  
  315.     .startup.ps
  316.  
  317.     This is the NeWS user profile file, read by OpenWindows (actually xnews)
  318.     on startup.     This is documented in the NeWS programming manual, near the
  319.     back.  The most useful thing to put here is PostScript code to change
  320.     the keyboard repeat rate, although you must be very careful, since a
  321.     syntax error in the PostScript means that xnews will either not start up
  322.     at all or will get broken in strange ways.    The NeWS manual gives code
  323.     that is both incorrect and insufficient.
  324.     WARNING: things in this file rarely work on both OpenWindows 2 and 3.
  325.  
  326.     Note that the mouse speed is best set in your .xinitrc with xset m; see
  327.     the man page for xset ("man xset", and "xset -help") for more information.
  328.  
  329.     Here's what $HOME/.startup.ps  should look like if you want a delay of
  330.     about a third of a second (300000 microseconds), and a repeat rate of
  331.     twenty or so keys per second (30000 microseconds between repeats) for
  332.     OpenWindows 3.  You'll have to experiment a bit because the RepeatTime
  333.     is the delay between keys sent, and thus doesn't include the time to
  334.     process each key, which is probably higher on my 4/110 than on your
  335.     SuperSPARC 10/51 GTi injection :-)  Again, this is for OpenWindows 3...
  336.  
  337.     % don't want the demos - see p. xxxii of NeWS Toolkit Reference Manual
  338.     % /IncludeDemos? false def
  339.  
  340.     UserProfile begin
  341.         /KeyRepeatThresh 0 300000 timeval storetimeval def
  342.         /KeyRepeatTime 0 30000 timeval storetimeval def
  343.         % Note: 300000 and 30000 differ greatly...
  344.     end
  345.  
  346.     You must also have a .user.ps file in the same directory, like this:
  347.  
  348.     /NeWS 3 0 findpackage beginpackage
  349.     /TNTCore 3 0 findpackage beginpackage
  350.     /TNT 3 0 findpackage beginpackage
  351.  
  352.     ClassRepeatKeys pop    % force repeat.ps to autoload
  353.  
  354.     endpackage endpackage endpackage
  355.  
  356.     If you change these parameters, you can test them without restarting the
  357.     OpenWindows server like this:
  358.     $ psh -i .startup.ps
  359.     Welcome to X11/NeWS Version3
  360.     $ psh -i
  361.     Welcome to X11/NeWS Version3
  362.     /classinit ClassRepeatKeys send
  363.     %%% now press control-D
  364.  
  365.     You can also either of these two files (.startup.ps and .user.ps) to make
  366.     the root window be "retained", so that a PostScript drawing on the
  367.     background won't be erased when you move windows:
  368.     frambuffer /Retained true put
  369.     will do this.  Note that this may increase the amount of memory used
  370.     by the NeWS server (xnews) dramatically.
  371.     
  372.     See also:
  373.     Trouble Shooting: It Won't Let Me Type
  374.     Trouble Shooting: Is there an easy way to edit Xdefaults?
  375.     Environment Variables
  376.  
  377. @ How can I configure OPEN LOOK for a left-handed mouse and keyboard?
  378.     You can use xmodmap to change the mouse buttons, but be prepared for one
  379.     or two occasional surprises.  See also "man 7 xview" for a list of
  380.     keybindings you can change, at least for XView programs.
  381.  
  382.     With OpenWindows 2.0, you can use defaultsedit to set the mouse mappings
  383.     and then let SunView handle them.  The status returned by svenv should
  384.     tell you whether your server is running under SunView or not; put this
  385.     in your .xinitrc:
  386.  
  387.     if eval `svenv -env`
  388.     then
  389.     xmodmap -e "pointer = 1 2 3"
  390.     input_from_defaults
  391.     else
  392.     xmodmap -e "pointer = 3 2 1"
  393.     fi
  394.  
  395.  
  396. @ How can I get the screen to go blank when the system is idle?
  397.  
  398.     Run screenblank from /etc/rc.local if you can; it's a boring but
  399.     effective screen saver.  See `man screenblank'.
  400.     Under Solaris 2 you'll need to copy screenblank from an older system, as
  401.     it's not supplied.  Then add a new file in /etc/rc2.d to make the system
  402.     run screenblank automatically.
  403.  
  404. Subject: Key Bindings, Cut and Paste
  405.  
  406. @ How do I cut and paste between XTerm and OpenWindows programs?
  407.  
  408.     To go from XTerm to textedit (say):
  409.     * Select the text you want to copy by dragging the SELECT mouse button
  410.       in xterm
  411.     * Press COPY in the XTerm (this key is L6, or Meta+c (the O'Reilly
  412.       XView manual gets this wrong)
  413.     * Move to the textedit window, and press PASTE (L8 or Meta+v)
  414.  
  415.     If this doesn't work, see Trouble Shooting: Cut and Paste
  416.  
  417.    To go the other way, from textedit to XTerm:
  418.     * Select the text in textedit.  No need to use COPY
  419.     * Move to the XTerm window and press ADJUST (the middle mouse button).
  420.     * You can also use the COPY/CUT and PASTE buttons.
  421.  
  422. @ COPY/PASTE is boring.     What short-cuts are available?
  423.  
  424.     Quick Copy within textedit, mailtool, etc:
  425.     * Click SELECT to get a text caret where you want the copied text to go
  426.     * Press and HOLD DOWN the PASTE (or CUT) button
  427.     * Select the text you want to copy/move.  You'll see that it's underlined
  428.       or crossed out, as appropriate.  (In the jed demo it goes grey)
  429.     * Let go of the PASTE (or CUT) button.
  430.     * The text you underlined or crossed out appears at the insert caret.
  431.  
  432.     Drag and Drop to Move a Selection
  433.     * Select the text you want to copy or move, by dragging or multiple-
  434.       clicking the SELECT or ADJUST mouse button
  435.     * Put the mouse pointer anywhere within the selection
  436.     * Press and HOLD DOWN down the SELECT mouse button, and move the mouse
  437.       pointer a little to the right; you'll see the cursor changes to be the
  438.       first 3 letters of the text (or some other icon).
  439.     * Still holding SELECT down, move the mouse over the point where you want
  440.       to drop the text
  441.     * You may see the mouse pointer change to a rifle-sight or target, to show
  442.       that it's OK to drop things here
  443.     * Let go of SELECT, and the text is moved.    This works in text fields of
  444.       dialogue boxes as well as in text subwindows.
  445.  
  446.     Drag and Drop to Copy a Selection
  447.     * This is the same as using Drag and Drop to Move a Selection, except that
  448.       you must hold the CONTROL key down as well as the SELECT mouse button.
  449.  
  450. [several sections moved to "deskset.faq" posted separately]
  451.  
  452. Subject: Applications: Finding Out...
  453.     Contact SunSoft (or Sun) and ask for the Catalyst OPEN LOOK guide,
  454.     which lists over 200 pages of applications, and also the _huge_
  455.     Catalyst listing of products for Suns, updated six-monthly.
  456.  
  457.     Sun's free CDWare CD/ROMs each contain demo versions of several popular
  458.     OPEN LOOK applications.  Often you can simply contact the vendor
  459.     concerned to have the license upgraded from demo, and receive the full
  460.     product documentation.
  461.  
  462.     SunPICS produces a CD/ROM for NeWSPrint users, Printer's Pallate, which
  463.     contains NeWSprint drivers for a variety of printers and plotters, as
  464.     well as 600 scaleable fonts that you can license.
  465.  
  466.     There is a separate FAQ posting in comp.windows.open-look that lists
  467.     a number of free and commercial aplications; mail lee@sq.com for a
  468.     copy, including OPEN LOOK UI Application List in the Subject for a
  469.     faster reply.
  470.  
  471. Subject: Fonts
  472.  
  473. @ Does OpenWindows support Type 1 PostScript fonts?
  474.     Yes, under either Solaris 2.  You must use .pfa format, not .pfb;
  475.     I have a program to convert them (lee@sq.com, ask for pfb2ps).
  476.     You will want to add an "XLFD" alias, e.g.
  477.     /-bruce rogers-centaur-medium-r-normal--0-0-0-0-p-0-iso8859-1
  478.     /Centaur-Roman _FontFamilySYN
  479.     (put these all on one line with tabs between them, in Synonyms.list,
  480.     before running bldfamily).
  481.  
  482.     If you have FrameMaker there is a utility to import them, I'm told.
  483.     The 57 fonts supplied with OpenWindows are fully hinted, though, and
  484.     comparing them to the Microsoft Windows and Apple TrueType fonts is
  485.     interesting...  The F3 font format is described in a publication from the
  486.     Sun OpenFonts group, listed in the Bibliography below.  Documentation on
  487.     the unbundled version of TypeScaler is also available from Sun OpenFonts.
  488.  
  489.     You can buy F3 fonts from SunPICS, Monotype, Linotype, URW and probably
  490.     other major foundries.
  491.  
  492.     SunPICS' NeWSPrint software supports both F3 and Type 1 fonts.
  493.  
  494.     TtrueType fonts are not supported at this time.
  495.  
  496. @ Improving font rendering time
  497.     Although the Sun type renderer (TypeScaler) is pretty fast, it's not as
  498.     fast as loading a bitmap.  You can pre-generate bitmap fonts for sizes
  499.     that you use a lot, and you can also alter and access the font cache
  500.     parameters.     If you have a lot of memory you might want to increase the
  501.     font cache size.
  502.     $ psh -i
  503.     Welcome to X11/NeWS Version3 <--- psh will say this at you
  504.     currentfontmem =    % type this line ...
  505.     300    % and here's whai my server was using -- 300 Kbytes
  506.     2000 setfontmem
  507.     % Just to check:
  508.     currentfontmem ==
  509.     2000
  510.     See pp. 328ff of the NeWS 3.0 Programmer's Guide.  You need to say psh -i
  511.     so that the NeWS packages are loaded, since the font memory controls
  512.     are NeWS extensions to PostScript - see the psh man page.
  513.  
  514. @ Making bitmap fonts for faster startup:
  515.     $ mkdir $HOME/myfonts
  516.     $ cd $HOME/myfonts
  517.     $ makeafb -20 -M $OPENWINHOME/lib/fonts/Bembo.f3b
  518.     Creating Bembo20.afb
  519.     $ convertfont -b Bembo20.afb
  520.     Bembo20.afb->./Bembo20.fb
  521.     Chars parameter greater than number of characters supplied.
  522.     $ ls
  523.     Bembo20.afb    Bembo20.fb    Synonyms.list
  524.     $ bldfamily
  525.     * Bembo               ./Bembo.ff (Encoding: latin)
  526.     cat: ./Compat.list: No such file or directory
  527.     $ xset +fp `pwd`
  528.     $ xset fp rehash
  529.  
  530.     If you want the server to see your new font directory every time,
  531.     add this directory to your FONTPATH environment variable in one
  532.     of your start-up files, e.g. .login or .profile.
  533.  
  534. @ Converting between font formats (convertfont, etc.)
  535.     You can also use Folio fonts with an X11 server, by converting them to a
  536.     bitmap (X11 bdf format) first.  Your licence forbids you from using the
  537.     fonts on another machine, and unless you have NeWSPrint you shouldn't
  538.     use them for printing.  Having said all that...  you can use makeafb and
  539.     convertfont to generate bdf files that you can compile with bdftosnf or
  540.     bdftopcf.
  541.  
  542.     Use mftobdf (from the SeeTeX distribution) to convert TeX pk fonts to
  543.     X11 bdf format, which you can then use with either X11 or OenWindows.
  544.  
  545.     You can also use der Mouse's "getbdf" to get bdf fonts from a running
  546.     X display server -- ftp: larry.mcrcim.mcgill.edu (132.206.1.1) /X/getbdf
  547.  
  548. @ Xview/OLIT fonts at 100 dpi
  549.     Put $OPENWINHOME/lib/fonts/100dpi first in your font path.  The glyph
  550.     font for XView controls isn't scaled until Solaris 2, when OLIT, TNT
  551.     and XView all use the same scaled font for controls.  You could probably
  552.     generate a bitmap (see above) for use on other systems, since the font
  553.     is included in the XView source, but I don't know if that's legal.
  554.  
  555. Subject: Trouble Shooting: Strange Error Messages
  556.  
  557. @ No manual entry for cm_lookup
  558.  
  559.     If man doesn't seem to find OpenWindows commands, even though you are
  560.     running OpenWindows, try setting the MANPATH environment variable:
  561.     MANPATH=$OPENWINHOME/share/man:/usr/man; export MANPATH
  562.     or
  563.     setenv MANPATH $OPENWINHOME/share/man:/usr/man
  564.     for csh users.  $OPENWINHOME should be /usr/openwin on most systems.
  565.  
  566. @ window: Window creation failed to get new fd 
  567. @ window: Base frame not passed parent window in environment 
  568. @ Cannot create base frame.  Process aborted. 
  569.  
  570.     These messages all come from SunView programs.  SunView was an
  571.     earlier windowing system for Suns, and was not networked.  Some of
  572.     the SunView programs are still around in /usr/bin, and have names
  573.     that are the same as their OpenWindows counterparts.  You almost
  574.     certainly want to run the programs in $OPENWINHOME instead.
  575.  
  576.     Set your path so that $OPENWINHOME/bin (and $OPENWIN/bin/xview for
  577.     OpenWindows 2) come before /bin (or /usr/bin, they're the same), or
  578.     you'll get the SunView versions of mailtool, cmdtool, shelltool, etc.
  579.  
  580.     If you are trying to run SunView programs, use
  581.     eval `svenv -env`
  582.     (see the man page for svenv) before running Sunview programs; you
  583.     can put this in your .xinitrc file.  The default Sun .xinitrc has this
  584.     already.
  585.  
  586.     NOTE:
  587.     You can't run SunView programs on an X terminal.  You can't run
  588.     SunViw programs to display anywhere except on the console of the
  589.     host running the program.  You may need to be running OpenWindows
  590.     rather than X to run Sunview programs (X can be compiled to work
  591.     with SunView, though).
  592.     SunView programs do not work beyond Solaris 2.2, so you should
  593.     consider moving.
  594.  
  595.  
  596. @ memory fault - core dumped
  597.     If you get this from the binder, or if binder vanishes suddenly,
  598.     get the following patches:
  599.     100493-02 Binder
  600.     100524-03 Cetables
  601.     100626-03 Tooltalk
  602.  
  603. @ Trouble compiling Xt, Xmu or OLIT programs: _get_wmShellWidgetClass
  604.  
  605.     If you are using OpenWindows 3.0 (X11R4-based Xt), contact your local
  606.     Sun office and request the following patches:
  607. 100512-02   4.1.x OpenWindows 3.0 libXt Jumbo patch
  608. 100573-03   4.1.x OpenWindows 3.0 undefined symbols when using shared libXmu
  609.  
  610.     If you can't install the patch, a workaround is to add 
  611.     -u get_wmShellWidgetClass -u get_applicationShellWidgetClass
  612.     on the link (ld or cc ... -o ...) line.  An alternative is to add
  613.     -assert nodefinitions
  614.     to CFLAGS in your Makefile, or even in Imake.tmpl.
  615.  
  616.  
  617. Subject: Trouble Shooting: It Won't Let Me Type
  618.  
  619. @ When I try to type into some programs, I just get beeps or nothing happens
  620.     It is a good idea to include at least:
  621.     OpenWindows.FocusLenience:    true
  622.     *Input: TRUE
  623.     in your .Xdefaults file, as these allow non-ICCCM-compliant programs to
  624.     receive input even if they forget to ask for it.
  625.     See the next item for editing .Xdefaults
  626.  
  627. Subject: Trouble Shooting: Cut and Paste not working
  628.  
  629. @ I can't paste from xterm to XView (including Sun DeskSet) programs
  630.     Under OpenWindows 2, you need to add the following either to your
  631.     $HOME/.Xdefaults file, or to $OPENWINHOME/lib/app-defaults/XTerm instead:
  632.  
  633.     XTerm*VT100.Translations: #override \
  634.         <Key>L6:select-set(CLIPBOARD)\n\
  635.         <Key>L8:insert-selection(CLIPBOARD)
  636.   
  637.     You must not move the mouse between ending the selection and pressing
  638.     L8 (the Paste key)!
  639.  
  640.     Under OpenWindows 3, this is already in the app-defaults file, so if it
  641.     isn't working, check that XFILESEARCHPATH is set to
  642.     /usr/openwin/lib/%T/%N%S
  643.     and if it isn't, either set it or copy/merge the above lines from
  644.     $OPENWINHOME/lib/app-defaults/XTerm into /usr/lib/X11/app-defaults/XTerm.
  645.     [See also: Environment Variables]
  646.  
  647.     This version automatically puts each xterm selection onto the clipboard:
  648.     XTerm*VT100.translations: #override\n\
  649.         ~Ctrl ~Meta<Btn2Up>: insert-selection(PRIMARY,CUT_BUFFER0)\n\
  650.         ~Ctrl ~Meta<BtnUp>: select-end(PRIMARY,CUT_BUFFER0,CLIPBOARD)\n\
  651.         <KeyPress>L8: insert-selection(CLIPBOARD)
  652.     [Note: be sure that the \n\ is at the very end of the line, there must
  653.      be no following spaces, and any + or | signs showing that this FAQ file
  654.      was altered must also be removed!]
  655.  
  656.     If you are using X11R5, you may find that adding the lines
  657. <Key>L10: start-extend() select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0)\n\
  658.        <KeyRelease>L10: kill-selection() \n
  659.     before the <KeyPress>L8 line will make L10 (CUT) work as a cut key!
  660.  
  661.     If you alter $HOME/.Xdefaults instead, you must use what X calls a
  662.     `more specific' resource name:
  663.     xterm.vt100.translations
  664.     will do.
  665.  
  666. @ I can't paste from XView (including Sun DeskSet) programs to xterm
  667.  
  668.     If you don't have the Sun L keys on the left of your keyboard, you can
  669.     use Meta-x, Meta-c and Meta-v for cut, coy and paste respectively.
  670.     You can change the keys by adding the following two lines to
  671.     your .Xdefaults file, edited as you wish (the values shown here are the
  672.     defaults):
  673.  
  674.     Openwindows.KeyboardCommand.Copy: c+Meta,L6
  675.     OpenWindows.KeyboardCommand.Paste", "v+Meta,L8
  676.     
  677.     Lists of resources are in the manual page for xview, and also in the
  678.     thinnish blue book `Companion to Volume 7, XView Reference Manual' from
  679.     O'Reilly, and also in the olwm and olvwm manual pages.
  680.  
  681. @ I can't copy and paste between OSF/Motif and OpenWindows programs.
  682.  
  683.    Adding the following lines to your .Xdefaults file may help:
  684.     *XmText.translations: #override\n\
  685.             <Key>L6:        copy-clipboard()\n\
  686.             <Key>L8:        paste-clipboard()\n\
  687.             <Key>L10:       cut-clipboard()\n
  688.     *XmTextField.translations: #override\n\
  689.             <Key>L6:        copy-clipboard()\n\
  690.             <Key>L8:        paste-clipboard()\n\
  691.             <Key>L10:       cut-clipboard()\n
  692.  
  693. @ I always get the same piece of text when I press PASTE (L8, Meta+v)
  694.     Remove the file /tmp/textsw_shelf and see if that helps; see also the
  695.     next item.
  696.  
  697. @ Cut Copy and Paste don't work at all (OpenWindows only)
  698.     Oh dear.  Use ps -xuaww | grep xv  to check that sv_xv_sel_svc is running
  699.     and that either you or root started it, depending on whether you started
  700.     OpenWindows with "openwin" or by logging in through xdm.
  701.     If not, start it.  If it dies, check that there is no /tmp/.sv_xv_sel_svc
  702.     before restarting it - you may need to be root to remove it, or you can
  703.     reboot your workstation.
  704.     Check that there is space in /tmp (use "df /tmp"), and also see if there
  705.     are a lot of files there with names like /tmp/tty.txt.a01246; if there are
  706.     several hundred of them, cut and paste may take so long that it times out.
  707.  
  708.     Quit any deskset tools such as mailtool, filemgr and cm (calendar), start
  709.     a terminal emulator and remove and /tmp/tty.txt* and /tmp/Text* files
  710.     that are still there.  It's simplest to quit openwin and start it again
  711.     after doing that, if cut and paste was broken, but if it starts working
  712.     again you can just carry on.  Note that files in /tmp not owned by you
  713.     might be in use by another worker comrade, so don't remove those without
  714.     checking first!
  715.  
  716. Subject: Trouble Shooting: Not authorized to use display
  717.  
  718.     If you get error messages that look like
  719.     Xlib:  connection to ":0.0" refused by server
  720.     Xlib:  Internal error during connection authorization check
  721.     Error: Can't Open display
  722.     try, on the machine running OpenWindows or X11,
  723.     xhost +machine
  724.     where "machine" is the computer on which you ran the command that failed.
  725.     If you want to let other users run programs on the same machine as you,
  726.     using your display, you will have to type the bizarre-looking
  727.     xhost +`hostname`
  728.     (or xhost +happyboy, if happyboy is the name of your workstation).
  729.     This lets ANY user on `happyboy' access your display.
  730.  
  731.     With OpenWindows 3 you can also use xauth, and the Programmer's Guide 
  732.     describes how to do this in Chapter 8, p. 101.  This is more secure.
  733.     Also check the man page for fbtab(5) to stop other users accessing the
  734.     framebuffer directly!
  735.  
  736.     Also note that there is a Sun patch for OpenWindows 3.0 under SunOS 4.1.1
  737.     to fix a serious security problem.  It is available through your local
  738.     Sun Answer Center as well as through anonymous ftp from ftp.uu.net
  739.     [192.48.96.2] system in /sun-dist:
  740.     Fix                     PatchID        Filename            Checksum
  741.     loadmodule              1076118        100448-01.tar.Z     04354  5
  742.  
  743.     On an X Terminal, there may be a setup menu that lets you change or
  744.     disable the list of hosts that can access the display.
  745.  
  746.     If you start getting this message after you've been logged in overnight,
  747.     there might be a cron job that's removing the Unix sockets in /tmp
  748.     that are used to communicate with the server when $DISPLAY doesn't have
  749.     a hostname before the :, or is empty.  Have the system administrator
  750.     change the cron script to skip sockets, or log out when you go home!
  751.  
  752. Subject: Trouble Shooting: other common problems
  753.  
  754. @ I get console error messages on my screen and they don't go away (Sun 3 or 4)
  755.     If "refresh" makes the messages vanish, but new ones come along later,
  756.     you need to run "xterm -C" from your .xinitrc, or start one up in
  757.     the background and then  choose Save Workspace from the
  758.     Workspace->Utilities menu.  Better still, pick up "contool" and run
  759.     that.  Get it from export.lcs.mit.edu in the contrib directory.  It
  760.     will monitor the console and open, flash its icon or beep when a
  761.     message appears; it's very easy to configure.
  762.  
  763.     If "refresh" from the Workspace->Utilities menu doesn't make the messages,
  764.     go away...
  765.     a Sun with a cg4 frame buffer has two screens - you can move the
  766.     mouse off the right-hand (by default) edge of the screen and onto
  767.     a whole new (but monochrome) display, called ":0.1".  See the man.
  768.     page for openwin; I have a shell script that checks for this and,
  769.     if there's a /dev/cgfour0, does
  770.         openwin -dev /dev/cgfour0 -dev /dev/bwtwo0
  771.     If you are running X11 or OpenWindows 2, you might need to add this
  772.     to your .xinitrc or other startup file:
  773.     (
  774.         eval `svenv -display unix:0.1 -env`
  775.         olvwm -display unix:0.1
  776.     ) &
  777.     Later releases of olwm and olvwm do this automatically.
  778.     You can also run switcher -e 0 to get rid of the messages.  Also, see
  779.     the note about contool, above.
  780.  
  781. @ Is there an easy way of editing .Xdefaults?
  782.     Use `props', which appears in the default root menu as `properties'.
  783.     This starts `props', a property editor which will re-write your
  784.     .Xdefaults after removing comments.  It then applies any changes.
  785.     Keep comments by using "comment." instead of "!", for example,
  786.     comment.*.font: Palatino-Italic-37
  787.  
  788. @ How do I get the File manager to use emacs instead of textedit?
  789.     set the default editor to
  790.     sh -c "exec emacs -font lucidasanstypewriter-18 \"$FILE\""
  791.     (you can change the font if you prefer a smaller one)
  792.  
  793. @ How do I run OpenWindows in inverse video?
  794.     This tends not to work under OpenWindows 2.     With OpwnWindows 3.0,
  795.     there are various ways, including using -bg and -fg options.  If you're
  796.     using OpenWindows 2 on a Sun 3 , probably the best you can do (short of
  797.     upgrading the workstation to a SPARC!) is to use xterm instead of cmdtool.
  798.  
  799. @ Why don't flat check-boxes work?
  800.     A known bug may make Guide's output dump core if you use these.
  801.     A workaround is to edit the Guide output, as it's only Guide's output
  802.     that's broken, not the actual check-box code.
  803.     This applies only to versions of DevGuide before Devguide 3.0.  If you're
  804.     still using an ancient DevGuide, you should upgrade as soon as possible;
  805.     the new one is fantastic!
  806.  
  807. @ When I leave OpenWindows, my screen goes blank or my mouse cursor stays
  808.   on the screen.
  809.     Try running clear_colormap; if this helps, put it as the last line in
  810.     the shell script you use to start OpenWindows (e.g. `openwin').
  811.  
  812. @ When I use snapshot, the system crashes, or the server hangs, or something.
  813.     This was a bug related to some systems only.  The only work-round was to
  814.     use some other screen dump program, such as xwd, xv 2.21 or xgrabsc.
  815.     
  816. @ Why have some of my function keys stopped working?
  817.     Keys F11 and F12 changed from SunF36 and SunF37 to SunXK_F36 and SunXK_F37
  818.     respectively in OpenWindows 3.  Applications must be recompiled, or you
  819.     might be able to use xmodmap or the public domain xkeycaps program to
  820.     change your keyboard layout back again.
  821.  
  822. @ When I type shelltool or cmdtool or textedit, I get the Sunview version
  823.     See under "Trouble Shooting: Strange Error Messages" below.
  824.  
  825.     (see also next item)
  826.  
  827. @ Mixing X11 and OpenWindows
  828.     (see also next item)
  829.  
  830.     Note that OpenWindows 3.0 includes the X11R4 core distribution (to patch
  831.     level 18), but not the contrib directory.  These notes apply to
  832.     OpenWindows 2.0, although you could also the do same sort of thing with
  833.     OpenWindows 3.0 and X11R5.
  834.  
  835.     Install the X11 libraries in /usr/lib/X11.    You can intermix OpenWindows
  836.     and X11R4 or X11R5, they're all compatible in this respect.
  837.     Put the X11 binaries in (for example) /usr/bin/X11.
  838.  
  839.     Put /usr/bin/X11 last in your PATH, so that you get OpenWindows versions
  840.     of programs instead of X11 ones where appropriate, although this is a
  841.     matter of preference.  In any event, put the OpenWindows bin directory
  842.     first -- see the preceding item for more details on that.  If you have
  843.     /bin (or /usr/bin, they're the same directory on SunOS) earlier in
  844.     your PATH than $OPENWINHOME/bin/xview, you'll get SunView programs instead
  845.     of OpenWindows ones!
  846.  
  847.     Set LD_LIBRARY_PATH so that /usr/openwin/lib is last, after the X11
  848.     library directory.    This doesn't matter with OpenWindows 3.0, but with
  849.     older versions you'll get error messages from X11 programs if you don't
  850.     do this.  The messages are generally harmless (see next item), although
  851.     xdm core dumps if this isn't right.
  852.  
  853.     Set OPENWINHOME to the directory containing OpenWindows if it isn't
  854.     /usr/openwin.
  855.  
  856.     NOTE:
  857.     OpenWindows 3.3 is based on X11R5, so you don't need to do this.
  858.     In fact, you might as well simply stick to the Xsun server provided
  859.     by Sun, unless it turns out to be buggy.  OpenWindows 3.3 (or 4.0?)
  860.     will probably be released (with Solaris 2.3?) later this year.
  861.  
  862.     See Also:
  863.     Environment Variables (especially XFILESEARCHPATH).
  864.  
  865. @ I get error messages on my screen about ld.so: libX11.so.4 not found
  866.     set LD_LIBRARY_PATH to be /usr/openwin.  If you also use X11, use
  867.          /usr/lib:/usr/5lib:/usr/openwin/lib
  868.     If you put this in a shell script or your .profile, use
  869.     ${OPENWINHOME-/usr/openwin}/lib instead of /usr/openwin; this is for
  870.     /bin/sh; for csh it is different.
  871.  
  872. @ I launch my filemgr and I get ld.so:map heap error (9) at /dev/zero
  873.     Your system needs to be patched.  Look in $OPENWINHOME/lib/OSpatches
  874.     and install the patch.
  875.  
  876. @ Why doesn't AnswerBook run for me?
  877.     You must be running OpenWindows to use AnswerBook.    It won't run under
  878.     X11 (on an X terminal or on anything else) because it uses NeWS to draw
  879.     the PostScript text and pictures.
  880.     If you are using OpenWindows 3.0, you need to use the OpenWindows 3.0
  881.     compatible navigator; it's called .navigator.ow3 on the AnswerBook CD/ROM.
  882.     If all AnswerBook users are using OpenWindows 3.0, you can replace
  883.     navigator wih .navigator.ow3 altogether (rename the old one first to
  884.     satisfy your sense of paranoia!)
  885.     The navigator.ow3 binary is also on CD/Ware Vol 2.
  886.     Note that the data files are in PostScript, so you can look at them with
  887.     a PostSript viewer (q.v.).
  888.  
  889. @ Why aren't there any fish in realxfishdb?
  890.     A fixed version of realxfishdb is available by ftp from
  891.     ftp.eng.auburn.edu [131.204.10.91] as /pub/realxfishdb.Z
  892.  
  893. @ Why is the Properties choice disabled in the Window menu?
  894.     It isn't implemented yet.  Many programs do respond to the Properties
  895.     Key (L3), though, or have a pop-up menu with Properties on it.
  896.     Under Solaris 2, programs using the NeWS toolkit (TNT, q.v.) take one
  897.     last sneer at X by providing a Properties menu that lets you rotate or
  898.     scale the window!  Try $OPENWINHOME/demo/{rap,jet,jed,text} for example.
  899.  
  900. @ File completion in the C-shell is broken in cmdtool
  901.     Sadly true, but use shelltool or xterm instead and it's fine.  It also
  902.     works if you run command tool on a remote machine.
  903.     Fixed in Solaris 2, and presumably in the XView 3.2 distribution.
  904.  
  905. @ When I run OLIT programs, some of the widgets are red!
  906.     Release 3 of OLIT added mouseless operation; action widgets can be
  907.     selected via the keyboard.  The currently selected item is highlighted
  908.     in red (the `Red Stain') to show that it has the input focus.
  909.     To disable it in most places, add this to your $HOME/.Xdefaults file:
  910.     *traversalOn: off
  911.     *TextEdit.traversalOn: on
  912.     *TextField.traversalOn: on
  913.     You can change the color using (for example)
  914.     *InputFocusColor: grey50
  915.     *input*FocusColor: green
  916.     *List*inputFocusColor: <your background color>
  917.     See the man page resources(3w), at the start of the OLIT 3 Widget Set
  918.     Reference Manual included in the OpenWindows 3 programmer documentation.
  919.     Meanwhile contact your distributor and ask for patch id 100451-30, the
  920.     OLIT/3.0 CTE Jumbo Patch.
  921.  
  922.     Solaris 2 includes an OLIT that uses the Giant Caret, just like XView.
  923.  
  924. @ When I run several programs, the colors on the screen all change when
  925.   I move into a different window! ("colormap flashing")
  926.     
  927.     This is becasue most hardware can only display a few colors at a time.
  928.     However, you can minimise the effect with the following procedure:
  929.     *  Start all the applications with colors that you wish to reserve.
  930.     *  Run
  931.     cmap_compact save
  932.        to create the .owcolors file
  933.     *  Put the line
  934.     cmap_compact init
  935.        near the start of your start-up file (.xinitrc)
  936.     *  Exit and then restart the window system.
  937.     *  cmap_compact init will push those colors .owcolors to the end of
  938.     the colormap and reserves them.
  939.  
  940.     Also note that control-L2 locks the colors of the current window, and
  941.     Control-L4 unlocks them -- this is described in the olwm manual page.
  942.  
  943. @ pageiew uses the wrong colors, or makes the colormap flash (see above):
  944.     This problem was reported by people for some reason running the Motif
  945.     window manager (mwm) with OpenWindows.
  946.     Try running pageview like this:
  947.     $OPENWINHOME/bin/reservecolors -svmono
  948.     $OPENWINHOME/bin/pageview
  949.     $OPENWINHOME/bin/reservecolors -discard
  950.  
  951. @ XDM breaks things
  952.     Command tool doesn't like being run without a Unix `controlling terminal'.
  953.     Use /etc/setsid to start your command tools and all will be well.
  954.     SunView applications may need to be run with svenv, as in
  955.     svenv -exec /usr/bin/traffic
  956.     because xdm won't set the necessary environment variables.
  957.     (You can't run SunView programs on an X terminal, of course!)
  958.     Note that the MIT xdm starts up the X server as root, which is a security
  959.     hole for OpenWindows; use the OpenWindows 3.0 xdm or be aware that your
  960.     users can access files and start Unix processes as root...
  961.  
  962. @ Function keys 11 and 12 stopped working
  963.     In OpenWindows 3.0, the X11 names ("keysyms") for these keys was changed
  964.     to SunXK_F36 and SunXK_F37.     Code which uses them should be recompiled,
  965.     or you might be able to get away with
  966.     xmodmap -e 'keysym SunXK_F36 = SunF36'
  967.  
  968. @ Motif applications make my screen hang
  969.    Apply patch 100444-48.
  970.    Note that Motif menus that lock up the screen can be taken down by
  971.    pressing Escape at them.
  972.  
  973. [the xview section is now posted separately]
  974.  
  975. Subject: Environment Variables
  976.  
  977.     Environment variables, and plausible values to use -- this list doesn't
  978.     take into account any local changes that you might have made, of course.
  979.     This list is for OpenWindows 3.0 -- differences for OpenWindows 2.0 are
  980.     marked, and I've added some comments for users of X11R4 and X11R5, too.
  981.  
  982.     DISPLAY  The name of the X Windows Display to use
  983.     :0.0 (on the local machine, the one actually running X11 or xnews)
  984.     :0.1 (on some machines for a second, monochrome screen)
  985.     machine-running-unix:0.0 (on other machines)
  986.     (You may need to do "xhost +other-machine" to let programs on other
  987.     machines use your display; see also under Trouble Shooting, and see
  988.     the section on xauth in the OpenWindows Version 3 Programmer's Guide,
  989.     pp. 101ff)
  990.     See also: console messages, under Trouble Shooting
  991.     FONTPATH  Where xnews searches for fonts
  992.     /usr/openwin/lib/fonts
  993.     (you can also use "xset fp+ dir" to add a directory to the font path,
  994.     but you may have to do "xset fp rehash" afterwards.  This is fine
  995.     under OpenWindows, but many X11 servers have font problems)
  996.     HELPPATH  Where XView looks when you press the Help key (or F1)
  997.     /usr/openwin/lib/locale:/usr/openwin/lib/help
  998.     (On SunOS 4.0.*, or with OpenWindows 2.0, omit the first entry, which
  999.     is for sites using a local other than "C" or "USA").
  1000.     LD_LIBRARY_PATH   Where to look to find shared C libraries
  1001.     /usr/lib:/usr/5lib:/usr/openwin/lib:/usr/CC/`arch`
  1002.     (the /usr/CC/`arch`/lib entry is only needed if you use C++ programs)
  1003.     OPENWINHOME     Where OpenWindows lives
  1004.     /usr/openwin  
  1005.     KEYBOARD, MOUSE -- serial devices to use instead of the console
  1006.     (don't set these for normal use; /dev/kbd and /dev/mouse)
  1007.     PATH  Where the Shell searches for programs to run
  1008.     $(OPENWINHOME)/bin:$(OPENWINHOME)/bin/xview:/usr/local/bin:.\
  1009.     $HOME/bin.`arch`:/usr/ucb:/usr/bin:/usr/bin/X11:/usr/hosts:\
  1010.     (you will certainly want to change this example!  There is no
  1011.     $(OPENWINHOME)/bin/xview in OpenWindows 3.0)
  1012.     XFILESEARCHPATH  Where programs look for app-defaults files
  1013.     /usr/openwin/lib/%T/%N%S
  1014.         (This is set automatically by "openwin" in OpenWindows 3.0)
  1015.         You might want to use /usr/lib/X11/%T/%N%S, or perhaps both,
  1016.         separated with a :, for example (for sh users)
  1017.             XFILESEARCHPATH=$OPENWINHOME/lib/%T/%N%S:/usr/lib/X11/%T/%N%S
  1018.         export XFILESEARCHPATH
  1019.     If you use X11R5, you might instead want
  1020.         /usr/lib/X11/%L/%T/%N%C%S:
  1021.         /usr/lib/X11/%l/%T/%N%C%S:
  1022.         /usr/lib/X11/%T/%N%C%S:
  1023.         /usr/lib/X11/%L/%T/%N%S:
  1024.         /usr/lib/X11/%l/%T/%N%S:
  1025.         /usr/lib/X11/%T/%N%S:
  1026.         $OPENWINHOME/lib/%T/%N%S
  1027.     (put all this on one line, though, with no spaces!)
  1028.  
  1029.     Together with the following in lib/Xinitrc
  1030.     xrdb -merge <<'END_XRDB'
  1031.        *customization:
  1032.     END_XRDB
  1033.  
  1034.     xrdb -merge <<'END_XRDB'
  1035.     #ifdef COLOR
  1036.        *customization:  -color
  1037.     #endif
  1038.     END_XRDB
  1039.  
  1040.     you automatically get a color oclock, editres, bitmap, xcalc, and
  1041.     xlogo since they use the "*customization" resource appearing as %C in
  1042.     the XFILESEARCHPATH. (see oclock (n))
  1043.     according to Rainer Sinkwitz <sinkwitz@ifi.unizh.ch>.
  1044.  
  1045.  
  1046. Subject: Where Can I get It? Ftp, implementations, etc...
  1047.  
  1048.     XView 3.2 is available by anonymous ftp from export.lcs.mit.edu and
  1049.     elsewhere.
  1050.  
  1051.     MoOLIT can be bought from AT&T in source form.
  1052.  
  1053.     OpenWindows can be obtained from Sun, or you can get the source from
  1054.     Interactive Systems Inc.  It is also included in some vendors' System V
  1055.     Release 4 implementations, although that's not always the latest version.
  1056.     The current release of OpenWindows from Sun for supported architectures
  1057.     is 3.0; for the Sun 3 series it is frozen at OpenWindows 2.0.
  1058.     Note that Sun includes OpenWindows with SunOS, and it is also included as
  1059.     the windowing system for Solaris.
  1060.  
  1061.     There are said (by Sun) to be over 35 ports of OpenWindows either
  1062.     available now or in progress.  Unfortunately, none of them seem to
  1063.     be available from anywhere.  Contact anthony@ovi.com for more information.
  1064.  
  1065.  
  1066. Subject: Bibliography: books, manuals, journals, papers, beer-mats
  1067.  
  1068.     The OPEN LOOK (tm) Graphical Interface is documented in two books:
  1069.     Sun Microsystems Inc., `OPEN LOOK Graphical User Interface Application
  1070.     Style Guidelines', Addison Wesley, 1989
  1071.     and
  1072.     Sun Microsystems Inc., `OPEN LOOK Graphical User Interface Functional
  1073.     Specification', Addison Wesley
  1074.  
  1075.     The Main documentation for the X Window system comes from
  1076.     O'Reilly & Associates in about nine or ten volumes.
  1077.     The most useful for OPEN LOOK users are:
  1078.     Volume 1: XLib Programming Manual
  1079.     Volume 2: XLib Reference Manual
  1080.     Volume 3: X Window System User's Guide
  1081.         (An OPEN LOOK edition of Volume 3 should appear later this year)
  1082.     Volume 7: XView Programmer's Manual [Dan Heller]
  1083.         [make sure you get the edition for XView 3.2]
  1084.     Companion to Volume 7: XView Reference Manual [Ed. Thomas Van Raalte]
  1085.  
  1086.     The Companion to Volume 7 is an expanded version of the Attribute
  1087.     Summary from the previous edition of the XView Programming Manual,
  1088.     together with other reference information, so that in practice you
  1089.     have to buy both books.
  1090.  
  1091.     Unfortunately, the 3.2 edition covers the features new since 3.0
  1092.     only in an appendix, but it's still pretty helpful, and the attributes
  1093.     have been merged in the summary; in addition, much of the book has
  1094.     been reworked, so that it's worth considering the 3.2 edition even
  1095.     if you're using 3.0.
  1096.  
  1097.     O'Reilly also have a thinnish orange book on the differences between
  1098.     X11R4 and RX115.
  1099.  
  1100.     OLIT programmers will also want the Xt books - volumes 4 and 5.
  1101.     There is a new big fat green Vol 5 updated for X11R5.  Make sure you
  1102.     don't get the Motif versions of these books by mistake.
  1103.  
  1104.     A journal, The X Resource, may also be of interest.
  1105.  
  1106.     O'Reilly & Associates, 103 Morris Street, Suita A, Sebastopol, CA 95472
  1107.     +1 707 829-0515, or, in the USA and Canada only, 1-800-998-9938
  1108.     Fax: +1 707-829-0104.
  1109.     Email nuts@ora.com or uunet!ora!nuts.
  1110.     For other distributors: mail, FAX, or call +1 707-829-0515.
  1111.  
  1112.     Some of the O'Reilly examples are available for ftp from
  1113.     export.lcs.mit.edu in the contrib/OReilly directory.
  1114.  
  1115.     The System V Release 4 Documentation from Prentice Hall may also include
  1116.     a section on OpenWindows.
  1117.  
  1118.     David Miller describes programming with OLIT in his
  1119.     `An OPEN LOOK At Unix' (M&T press).
  1120.     
  1121.     Nabajyoti Brkakati gives an excellent introduction to X and to OLIT
  1122.     programming, as well as setting up and using X and OpenWindows, in:
  1123.     `Unix[R] Desktop Guide to OPEN LOOK' SAMS, 1992  ISBN 0-672-30023-0
  1124.     You can get the examples from this book as
  1125.         export.lcs.mit.edu:contrib/naba-olguide-examples.tar.Z
  1126.  
  1127.     Also about using OLIT, and Xt in particular:
  1128.     The X Window System: Programming and Applications with Xt,
  1129.     OPEN LOOK Edition, Doug Young and John Pew, Prentice Hall, 1992,
  1130.     ISBN 0-13-982992-X
  1131.     There are also HP Widgets and Motif versions of this book.
  1132.     The example source code in this book can be obtained by ftp from
  1133.     export.lcs.mit.edu, file "contrib/young.pew.olit.Z".
  1134.  
  1135.     There is an introduction to XView in
  1136.     `Writing Applications For Sun Systems', Vol 1, `A Guide for
  1137.     Macintosh(R) Programmers' (Sun Microsystems, pub. Addison Wesley)
  1138.     
  1139.     Another recent XView book is
  1140.     `Practical XView Programming', Kenneth W. Bibb and Larry Wake,
  1141.     John Wiley & Sons, Inc., 1993, ISBN 0-471-57460-0
  1142.     You can get the examples from this book as
  1143.         export.lcs.mit.edu:/contrib/xvprac.tar.Z
  1144.  
  1145.     Neither of these two XView books elimiates the need for the O'Reilly
  1146.     X Series vols 1, 2 and 7.
  1147.  
  1148.     To learn more about the NeWS and PostScript languages, see
  1149.  
  1150.     The NeWS Book, Springer Verlag, 1989 (sadly, a little out of date)
  1151.  
  1152.     PostScript Language Reference Manual, Second Edition,
  1153.     Adobe Systems Inc., Addison Wesley, 1990 ["the Red Book"]
  1154.         Note that OpenWindows 3 is a level 1 PostScript implementation,
  1155.         with certain Level 2 features (such as Composite Fonts) to some
  1156.         degree.
  1157.     
  1158.     PostScript Language Tutorial and Cookbook,
  1159.     Adobe Systems Inc., Addison Wesley, 1985 ["The blue book"]
  1160.     
  1161.     There are several books on using Solaris (i.e. SunOS).
  1162.     See the FAQ in the Solaris newsgroup.  I'll mention here:
  1163.     `Solaris Porting Guide', SunSoft ISV Engineering et. al.,
  1164.     1993, SunSoft Press (Prentice Hall), ISBN 0-13-030396-8
  1165.     for an excellent (if sometimes over-ebullient) introduction to the
  1166.     differences and new features of Solaris 2, including a clear section
  1167.     on localisation and internationalisation.   Includes diskette.
  1168.  
  1169.     Sun also supplies a large amount of documentation with OpenWindows,
  1170.     although you may have to order it separately.  Here's what I have; they
  1171.     are each a little over 21 cm square (wider than A4 paper), and vary from
  1172.     about 1 cm to about 3cm thick.  They say `User's Guide' or `Programmer's
  1173.     Guide' on the front.  The User manuals have a red stripe on the bottom,
  1174.     and the Programmer ones have a green stripe.
  1175.  
  1176.     Note:
  1177.     the Solaris 2 documentation sets are red, blue and silver.
  1178.     Watch in particular for small spiral-bound task-oriented `how-to'
  1179.     booklets in the Solaris 2 documentation.
  1180.  
  1181.     Here are the OpenWindows 3.0 part numbers for SunOs 4:
  1182.  
  1183.     800-6006-10 OpenWindows Version 3 Release Manual
  1184.     800-6029-10 OpenWindows Version 3 Installation and Start-Up Guide
  1185.     800-6231-10 OpenWindows Version 3 DeskSet Reference Guide
  1186.     800-6618-10 OpenWindows Version 3 User's Guide
  1187.     800-6323-10 Desktop Integration Guide [also available in bookstores?]
  1188.     800-6027-10 Programmer's Guide
  1189.     800-6005-10 OpenWindows Version 3 Reference Manual [the man pages]
  1190.     800-6319-10 The NeWS Toolkit 3.0 Reference Manual
  1191.     800-6736-10 NeWS 3.0 Programming Guide
  1192.     800-6055-10 OLIT 3.0 Widget Set Reference Manual
  1193.     800-6198-10 XView 3.0 Reference Manual: Converting SunView Applications
  1194.  
  1195.     800-6854-10 F3 Font Format Specification [order separately]
  1196.  
  1197.     There are also some other sets of documentation, including the TypeScaler
  1198.     documentation from the OpenFonts group, for example.  There doesn't seem
  1199.     to be a complete list anywhere.
  1200.  
  1201.     ??????????? ToolTalk 1.0 Setup and Administration Guide (SunSoft, 1991)
  1202.     800-6093-10 ToolTalk 1.0 Programmer's Guide (SunSoft, 1991)
  1203.     There might be documentation about the Link Manager somewhere, too;
  1204.     I am not sure what happened to the Link Manager, is that part of DOE??
  1205.  
  1206.     AT&T includes several large thorny bushes' worth of paper with OLIT.
  1207.  
  1208.     Sun's AnswerBook CD/ROM contains a lot of the above documentation.
  1209.  
  1210.     Volume 8 of the O'Reilly series is about X Administration, and mentions
  1211.     OpenWindows, although it is primarily aimed at X11R5.  A CD/ROM is
  1212.     included, which contains a working X11R5 distribution.  This book will
  1213.     be of particular use with OpenWindows 2.3, based on X11R5.
  1214.  
  1215.  
  1216. Subject: Getting this File, Revision History, Recent Changes
  1217.  
  1218.     Mail lee@sq.com to ask for it.  Douglas N. Arnold (dna@math.psu.edu)
  1219.     keeps an up-to-date copy on ftp.math.psu.edu (currently 146.186.131.129)
  1220.     in the file ~ftp/pub/FAQ/open-look.
  1221.  
  1222.     If you can do gopher or XMosaic, you can also see Andrew Violette's
  1223.     spectacular hypertext version of this document at:
  1224.     http://cs.indiana.edu/faq/OpenLook/front_page.html
  1225.  
  1226.  
  1227. # @(#) $Id: ol1.faq,v 1.50 94/03/29 20:34:11 lee Exp $
  1228.  
  1229.  
  1230. Acknowledgements:
  1231.     Dale Dougherty <dale@ora.com> (Nov/info about new XView book)
  1232.     Antonio Freixas <tonyf@ims.com> (Nov/Motif patch and Escape tip)
  1233.     Karl Glazebrook <kgb@mail.ast.cam.ac.uk> (Motif copy/paste)
  1234.  
  1235.     And many others...    You get deleted from this list after a while.
  1236.  
  1237. -- 
  1238. Liam Quin, Manager of Contracting, SoftQuad Inc +1 416 239 4801 lee@sq.com
  1239. HexSweeper NeWS game;OPEN LOOK+XView+mf-fonts FAQs;lq-text unix text retrieval
  1240. SoftQuad HoTMetaL: ftp.ncsa.uiuc.edu:Web/html/hotmetal, and also doc.ic.ac.uk:
  1241. packages/WWW/ncsa/..., gatekeeper.dec.com:net/infosys/Mosaic/contrib/SoftQuad/
  1242.