rhl24.htm
来自「linux的初学电子书」· HTM 代码 · 共 2,490 行 · 第 1/5 页
HTM
2,490 行
<FONT SIZE=4 COLOR="#FF0000"><B>Sticky Windows</B></FONT></CENTER></H4>
<BR>
<P>You'll notice that the Virtual Desktop Manager never moves on your screen if you change views into the desktop. That's because the VDM is permanently sticky.
<BR>
<P>Windows that are sticky never move position on the screen when you change your view into the desktop. To set a particular window as sticky, simply select Stick in its Frame menu. You may similarly unstick the window via its menu.
<BR>
<P>Menus for base windows include the Stick and Unstick commands.
<BR>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>Only base frames—those that can be iconified, as opposed to those that have a pushpin—are eligible to become sticky. Some frames inherit the stickiness of their base frames. Thus, for most applications, either all windows are sticky or none
of them are. The exception to this is applications that create two or more base frames: All base frames are originally created as unsticky (but see the following discussion on the VirtualSticky resource).</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<P>Windows that are sticky always appear in the same place on the screen no matter which part of the virtual desktop you're viewing. Windows that are not sticky (by default, all windows except the VDM) move when you change the current view on the virtual
desktop.
<BR>
<P>Like olwm, olvwm uses key bindings for certain actions. All actions are specified in olwm as well as an additional set of actions to control the view into the desktop. You can use the Function keys F1 through F9 with the Alt key to switch virtual
screens.
<BR>
<BR>
<A NAME="E68E194"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Resources in OpenWindows</B></FONT></CENTER></H3>
<BR>
<P>You can customize OpenWindows using resources. Resources affect the behavior of applications in olwm. Global resources in olwm consist of two resource components:
<BR>
<UL>
<LI>The resource name is taken from the trailing pathname component of argv[0]. This value is typically olwm.
<BR>
<BR>
<LI>The second resource component names the global attribute being set.
<BR>
<BR>
</UL>
<P>Thus, to set the AutoColorFocus attribute, one would use olwm.AutoColorFocus as the resource specification in .Xdefaults. olvwm will read a resource file ($HOME/.olvwmrc) for your resources.
<BR>
<P>olwm automatically picks up changes to many of these resources if the resource database changes at runtime. You can modify olwm's behavior by changing the resource database with xrdb or with Workspace Properties.
<BR>
<P>If a resource value is specified on olwm's command line, it overrides the value in the resource database. Therefore, changing the resource's value in the database has no effect on this resource setting.
<BR>
<P>Some customizations include the following:
<BR>
<TABLE BORDERCOLOR=#000040 BORDER=1 CELLSPACING=2 WIDTH="100%" CELLPADDING=2 >
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Hot Keys
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
You can specify that when a certain key (or, more likely, key in combination with modifiers) is pressed, certain actions are performed. You can warp to a particular application, and open, raise, close, execute, and quit applications.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Screen Bindings
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
You can specify that certain applications will always start on a particular logical screen.</FONT>
<TR>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
Menu Options
</FONT>
<TD VALIGN=top BGCOLOR=#80FFFF ><FONT COLOR=#000080>
You can alter the behavior of WINMENU selections on a particular window.</FONT>
</TABLE><P>More resources are listed in the man pages for olwm, olvwmrc, and olvwm.
<BR>
<BR>
<A NAME="E68E195"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Using Text-Editing Features</B></FONT></CENTER></H3>
<BR>
<P>In general, the editing/moving commands go in the opposite direction when shifted—that is, Ctrl-W deletes a word, and Ctrl-Shift-W deletes the word to the right of the insertion point.
<BR>
<PRE>
<FONT COLOR="#000080">Alt-i - include file Alt-f - find selection (forward/backward)
Ctrl-a - start of line Ctrl-< - back word
Ctrl-e - end of line Ctrl-> - forward word
Ctrl-w - delete word Ctrl-u - delete to start/END of line
Ctrl-Return - move to end/START of document</FONT></PRE>
<P>See the olwm and olvwm man pages for a list of some of the default keys.
<BR>
<P>You can cut and paste between XTerm and other OpenWindows programs. I will use textedit as a sample program.
<BR>
<P>To go from XTerm to textedit (for this example):
<BR>
<OL>
<LI>Select the text you want to copy by dragging the SELECT mouse button in XTerm.
<BR>
<BR>
<LI>Press COPY in the XTerm (this key is Alt-C).
<BR>
<BR>
<LI>Move to the textedit window, and press PASTE (Alt-V).
<BR>
<BR>
</OL>
<P>To go the other way, from textedit to XTerm:
<BR>
<OL>
<LI>Select the text in textedit. No need to use COPY.
<BR>
<BR>
<LI>Move to the XTerm window and press the middle mouse button.
<BR>
<BR>
</OL>
<P> (If you have a two-button mouse, press both left and right buttons together.)
<BR>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>You can also use the COPY/CUT and PASTE buttons.</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<P>For Quick Copy within textedit, mailtool, and similar programs:
<BR>
<OL>
<LI>Click SELECT to get a text caret where you want the copied text to go.
<BR>
<BR>
<LI>Press and hold down the PASTE (or CUT) button.
<BR>
<BR>
<LI>Select the text you want to copy/move. You'll see that it's underlined or crossed out—or even a different color.
<BR>
<BR>
<LI>Let go of the PASTE (or CUT) button. The text you underlined or crossed out appears at the insert caret.
<BR>
<BR>
</OL>
<P>To drag-and-drop to move a selection, follow these steps:
<BR>
<OL>
<LI>Select the text you want to copy or move by dragging or multiple-clicking the SELECT or ADJUST mouse button.
<BR>
<BR>
<LI>Put the mouse pointer anywhere within the selection.
<BR>
<BR>
<LI>Press and hold down the SELECT mouse button and move the mouse pointer a little to the right. You'll see the cursor change into the first three letters of the text (or some other icon).
<BR>
<BR>
<LI>Still holding down the SELECT button, move the mouse over the point where you want to drop the text.
<BR>
<BR>
<LI>You may see the mouse pointer change to a rifle sight or target, to show that it's OK to drop things there.
<BR>
<BR>
<LI>Release SELECT and the text is moved. This works in text fields of dialog boxes as well as in text subwindows.
<BR>
<BR>
</OL>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>To drag-and-drop to copy a selection, you must hold the Ctrl key down as well as the SELECT mouse button.</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<BR>
<A NAME="E68E196"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Support for Left-Handed Users</B></FONT></CENTER></H3>
<BR>
<P>You can configure OPEN LOOK for a left-handed mouse and keyboard. Use xmodmap to change the mouse buttons. Type man 7 xview for a list of key bindings you can change, at least for XView programs.
<BR>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>Unlike the Motif release, the xmodmap for mouse-key reversal sometimes does not work right. In fact, it may actually reverse some keys on your keyboard or have some other surprising results. You have been warned.</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<P>With OpenWindows 2.0, you can use defaultsedit to set the mouse mappings and then let SunView handle them. The status returned by svenv should tell you whether your server is running under SunView or not; put this in your .xinitrc:
<BR>
<PRE>
<FONT COLOR="#000080">if eval 'svenv -env'
then
xmodmap -e "pointer = 1 2 3"
input_from_defaults
else
xmodmap -e "pointer = 3 2 1"
fi</FONT></PRE>
<BR>
<A NAME="E68E197"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Troubleshooting</B></FONT></CENTER></H3>
<BR>
<P>Here are some solutions to problems you might have:
<BR>
<UL>
<LI>If man doesn't seem to find OpenWindows commands, even though you are running OpenWindows, try setting the MANPATH environment variable:
<BR>MANPATH=$OPENWINHOME/share/man:/usr/man; export MANPATH
<BR>or
<BR>setenv MANPATH $OPENWINHOME/share/man:/usr/man
<BR>for csh users. $OPENWINHOME should be /usr/openwin on most systems. Set your path so that $OPENWINHOME/bin (and $OPENWIN/bin/xview for OpenWindows 2) come before /bin (or /usr/bin, they're the same), or you'll get the SunView versions of mailtool,
cmdtool, shelltool, and so on.
<BR>
<BR>
<LI>Dropped characters when you type into applications.
<BR>In this case, include the following lines in your .Xdefaults file, as these enable non-ICCCM-compliant programs to receive input even if they forget to ask for it.
<BR>OpenWindows.FocusLenience: true
<BR>*Input: TRUE
<BR>
<LI>CUT and PASTE just do not work. Add the following either to your $HOME/.Xdefaults file or to $OPENWINHOME/lib/app-defaults/XTerm instead:
<BR>XTerm*VT100.Translations: #override \
<BR><Key>L6:select-set(CLIPBOARD)\n\
<BR><Key>L8:insert-selection(CLIPBOARD)
<BR>If this text is already in the app-defaults file, check that XFILESEARCHPATH is set to
<BR>/usr/openwin/lib/%T/%N%S
<BR>If it isn't, either set it or copy/merge these lines from $OPENWINHOME/lib/app-defaults/XTerm into /usr/lib/X11/app-defaults/XTerm.
<BR>This version automatically puts each xterm selection onto the Clipboard:
<BR>XTerm*VT100.translations: #override\n\
<BR>~Ctrl ~Meta<Btn2Up>: insert-selection(PRIMARY,CUT_BUFFER0)\n\
<BR>~Ctrl ~Meta<BtnUp>: select-end(PRIMARY,CUT_BUFFER0,CLIPBOARD)\n\
<BR><KeyPress>L8: insert-selection(CLIPBOARD)
<BR>
</UL>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>Be sure that the \n\ is at the very end of all lines in the middle.</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<UL>
<LI>If you get error messages that look like the following lines,
<BR>Xlib: connection to ":0.0" refused by server
<BR>Xlib: Internal error during connection authorization check
<BR>Error: Can't Open display
<BR>try the command xhost-machine, where machine is the computer on which you ran the command that failed.
<BR>If you want to let other users run programs on the same machine as you, using your display, you have to type the command xhost +'hostname', which lets any user on 'hostname' access your display.
<BR>
<BR>
<LI>Your screen flashes between applications. This is because most hardware can only display a few colors at a time. Try the following steps:
<BR>
<BR>
<OL>
<LI><A NAME="I2"></A>Start all the applications with colors that you wish to reserve.
<BR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?