rhl24.htm
来自「linux的初学电子书」· HTM 代码 · 共 2,490 行 · 第 1/5 页
HTM
2,490 行
<BR>
<LI>Run cmap_compact save to create the .owcolors file.
<BR>
<BR>
<LI>Put the line cmap_compact init near the start of your I start-up file (.xinitrc).
<BR>
<BR>
<LI>Exit and then restart the window system.
<BR>
<BR>
<LI>cmap_compact init pushes those .owcolors colors to the end of the colormap and reserves them.
<BR>
<BR>
</OL>
</UL>
<P>Also note that Ctrl-L2 locks the colors of the current window, and Ctrl-L4 unlocks them—this is described in the olwm man page.
<BR>
<P>See the X*.faq in the /usr/docs/faq directory for detailed information on problems specific to different platforms. The FAQ file can be give you a lot of information about Linux and what problems to expect.
<BR>
<BR>
<A NAME="E68E198"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Environment Variables</B></FONT></CENTER></H3>
<BR>
<P>XView for Linux uses the following environment variables:
<BR>
<UL>
<LI>DISPLAY The name of the X Window display to use :0.0 (on the local machine, the one actually running X11 or xnews) :0.1 (on some machines for a second, monochrome screen) machine-running-unix:0.0 (on other machines). (You may need to do xhost
+other-machine to let programs on other machines use your display.)
<BR>
<BR>
<LI>HELPPATH Where XView looks when you press the Help key (or F1): /usr/openwin/lib/locale:/usr/openwin/lib/help.
<BR>
<BR>
<LI>LD_LIBRARY_PATH is set to find shared C libraries. It is usually defaulted to this value:
<BR>/usr/lib:/usr/5lib:/usr/openwin/lib:/usr/CC/'arch'
<BR>
<LI>OPENWINHOME Where OpenWindows lives (/usr/openwin).
<BR>
<BR>
<LI>PATH Where the shell searches for programs to run.
<BR>
<BR>
<LI>Include this line:
<BR>$(OPENWINHOME)/bin:$(OPENWINHOME)/bin/xview
<BR>
<LI>XFILESEARCHPATH Where programs look for app-defaults files (/usr/openwin/lib/%T/%N%S). This is usually set to: $OPENWINHOME/lib/%T/%N%S:/usr/lib/X11/%T/%N%S.
<BR>
<BR>
</UL>
<BR>
<A NAME="E68E199"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Special Help for Sun Workstation Users</B></FONT></CENTER></H3>
<BR>
<P>If you work with Sun Microsystems Sun Workstations, then the olwm and olvwm managers should make life easier for you. If you want to make life even easier, you can map the function keys to reflect that of Sun workstations. To do this, you have to modify
the .Xmodmap file in your home directory. If you do not have a .Xmodmap file, you can create one with a text editor.
<BR>
<P>The best place to look is in the man pages for .Xmodmap. The man pages are full of examples, some of which I will describe briefly here. For issues specific to your setting, read the man pages.
<BR>
<P>A typical .Xmodmap file will look like this:
<BR>
<PRE>
<FONT COLOR="#000080">keysym F1 = xman
keysym F2 = F19
keysym F3 = F20
keysym F4 = F16
keysym F5 = F18</FONT></PRE>
<P>The undo button is ominously absent from the .Xmodmap entries. To get this entry, add the following line. (The text after the ! is a comment and ignored by X.)
<BR>
<BR>
<PRE>
<FONT COLOR="#000080">keysym F6 = F14 ! The undo button.</FONT></PRE>
<P>For example, if you hate the location of the shift and control keys on your PC, you can swap the location. Simply put these lines in your .Xmodmap file:
<BR>
<PRE>
<FONT COLOR="#000080">remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L</FONT></PRE>
<P>You can also assign the meta key to a function key using this line:
<BR>
<BR>
<PRE>
<FONT COLOR="#000080">keysym F9 = Meta_L</FONT></PRE>
<P>Finally, when you have made your changes, you have to tell the server to use them. It's too cumbersome to shut down the window manager and restart it. Instead, you can use the rdb command:
<BR>
<BR>
<PRE>
<FONT COLOR="#000080">$ xrdb .Xdefaults.</FONT></PRE>
<P>You can also invoke specific settings from the command line using xmodmap. For example, type the following line:
<BR>
<BR>
<PRE>
<FONT COLOR="#000080">$ xmodmap -e "keysym F9=Meta_L"</FONT></PRE>
<P>Modifying the .Xmodmap file is better in that the changes are preserved for future sessions.
<BR>
<BR>
<A NAME="E68E200"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Internet Sites for XView</B></FONT></CENTER></H3>
<BR>
<P>XView 3.0 is available by anonymous FTP from <A HREF="tppmsgs/msgs0.htm#85" tppabs="ftp://export.lcs.mit.edu/">export.lcs.mit.edu</A> if you want to upgrade the CD-ROM version.
<BR>
<P>OpenWindows can also be obtained from Sun, or you can get the source from Interactive Systems Inc. It is also included in some vendors' System V Release 4 implementations, although that's not always the latest version.
<BR>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>The current release of OpenWindows from Sun for supported architectures is 3.0; for the Sun 3 series it is frozen at OpenWindows 2.0.</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<P>Sun includes OpenWindows with SunOS, and it is also included as the windowing system for Solaris.
<BR>
<P>There are said (by Sun) to be more than 35 ports of OpenWindows either available now or in progress. Unfortunately, none of them seem to be available from anywhere.
<BR>
<P>Douglas N. Arnold (<A HREF="mailto:dna@math.psu.edu">dna@math.psu.edu</A>) keeps an up-to-date FAQ on <A HREF="tppmsgs/msgs0.htm#94" tppabs="ftp://ftp.math.psu.edu/">ftp.math.psu.edu</A> (currently 146.186.131.129) in the file /pub/FAQ/open-look.
<BR>
<P>MoOLIT can be bought from AT&T in source form.
<BR>
<BR>
<A NAME="E68E201"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Where To Go for More Information</B></FONT></CENTER></H3>
<BR>
<P>Nabajyoti Barkakati gives an excellent introduction to X and to OLIT programming, as well as setting up and using X and OpenWindows, in
<BR>
<UL>
<UL>
<P>UNIX Desktop Guide to OPEN LOOK, Sams, 1992, ISBN 0-672-30023-0
</UL></UL>
<P>The OPEN LOOK Graphical Interface is documented in two books:
<BR>
<UL>
<UL>
<P>Sun Microsystems Inc., OPEN LOOK Graphical User Interface Application Style Guidelines, Addison Wesley, 1989.
<BR>
</UL></UL>
<UL>
<UL>
<P>Sun Microsystems Inc., OPEN LOOK Graphical User Interface Functional Specification, Addison Wesley, 1989.
<BR>
</UL></UL>
<P>David Miller describes programming with OLIT in his book, An OPEN LOOK At UNIX (M&T Press).
<BR>
<P>You could also try The X Window System: Programming and Applications with Xt, OPEN LOOK Edition, by Doug Young and John Pew (Prentice Hall, 1992, ISBN 0-13-982992-X).
<BR>
<P>Sun Microsystems supplies a large amount of documentation with OpenWindows, although you may have to order it separately. The following list shows what I have; each book is 8.5´11 and vary from about 1 to 2 inches thick. Each manual says
"User's Guide" or "Programmer's Guide" on the front cover. The user manuals have a red stripe on the bottom, and the programmer versions have a green stripe:
<BR>
<TABLE BORDERCOLOR=#000040 BORDER=1 CELLSPACING=2 WIDTH="100%" CELLPADDING=2 >
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6006-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
OpenWindows Version 3 Release Manual</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6029-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
OpenWindows Version 3 Installation and Start-Up Guide</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6231-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
OpenWindows Version 3 DeskSet Reference Guide</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6618-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
OpenWindows Version 3 User's Guide</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6323-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Desktop Integration Guide</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6027-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Programmer's Guide</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6005-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
OpenWindows Version 3 Reference Manual (the man pages)</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6319-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
The NeWS Toolkit 3.0 Reference Manual</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6736-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
NeWS 3.0 Programming Guide</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6055-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
OLIT 3.0 Widget Set Reference Manual</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6198-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
XVTiew 3.0 Reference Manual: Converting SunView Applications</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
800-6854-10
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
F3 Font Format Specification</FONT>
</TABLE><P>Sun's AnswerBook CD-ROM contains much of this documentation and can prove to be a valuable source of information if you intend to port applications to Sun Workstations.
<BR>
<BR>
<A NAME="E68E202"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Summary</B></FONT></CENTER></H3>
<BR>
<P>Here is what you should remember from this chapter on OPEN LOOK:
<BR>
<UL>
<LI>XView is the OPEN LOOK GUI interface for Linux and is also referred to as OpenWindows. All three terms (XView, OPEN LOOK, and OpenWindows) are used interchangeably, but really refer to the same windowing interface.
<BR>
<BR>
<LI>OPEN LOOK is not Motif. Not only are the window decorations different—the terminology used to convey actions is also different. (For example, Close in Motif generally kills an application and its window, whereas Close in OPEN LOOK iconifies a
window.)
<BR>
<BR>
<LI>You can use two types of OPEN LOOK window managers: olwm and olvwm. The olwm is the base OPEN LOOK window manager and the olvwm extends olwm by provid
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?