📄 441-442.html
字号:
<HTML>
<HEAD>
<TITLE>Special Edition Using Linux, Fourth Edition:Using X Windows</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=0789717468//-->
<!--TITLE=Special Edition Using Linux, Fourth Edition//-->
<!--AUTHOR=Jack Tackett//-->
<!--AUTHOR=Jr.//-->
<!--AUTHOR=Steve Burnett//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Que//-->
<!--CHAPTER=22//-->
<!--PAGES=441-442//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="439-441.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="442-444.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H4 ALIGN="LEFT"><A NAME="Heading6"></A><FONT COLOR="#000077"><I>twm</I>
</FONT></H4>
<P>The <TT>twm</TT> window manager for the X Windows system provides title bars, shaped windows, several forms of icon management, user-defined macro functions, click-to-type and pointer-driven keyboard focus, and user-specified key and mouse button bindings. This program is usually started by the user’s session manager or startup script. When used from <TT>xdm</TT> or <TT>xinit</TT> without a session manager, <TT>twm</TT> is frequently executed in the foreground as the last client. When run this way, exiting <TT>twm</TT> causes the session to be terminated (that is, logged out).</P>
<P>By default, application windows are surrounded by a “frame,” with a title bar at the top and a special border around the window. The title bar contains the window’s name, a rectangle that’s lit when the window is receiving keyboard input, and function boxes known as <I>title buttons</I> at the left and right edges of the title bar. Clicking Button1 (usually the leftmost button on the mouse, unless it has been changed with <TT>xmodmap</TT>) on a title button invokes the function associated with the button. In the default interface, windows are <I>iconified</I> (minimized to an icon) by clicking the left title button, which looks like a dot. Conversely, windows are <I>deiconified</I>, or maximized, by clicking the associated icon or entry in the icon manager.</P>
<P>Windows are resized by clicking the right title button (which resembles a group of nested squares), dragging the pointer over the edge that’s to be moved, and releasing the pointer when the outline of the window is the desired size. Similarly, windows are moved by clicking the title bar, dragging a window outline to the new location, and then releasing when the outline is in the desired position. Just clicking the title bar raises the window without moving it.</P>
<P>When new windows are created, <TT>twm</TT> honors any size and location information requested by the user. Otherwise, an outline of the window’s default size, its title bar, and lines dividing the window into a three-by-three grid that track the pointer are displayed. Each mouse button performs a different operation:</P>
<DL>
<DD><B>•</B> Clicking Button1 positions the window at the current position and gives it the default size.
<DD><B>•</B> Clicking Button2 (usually the middle mouse button) and dragging the outline gives the window its current position but allows the sides to be resized as described above.
<DD><B>•</B> Clicking Button3 (usually the right mouse button) gives the window its current position but attempts to make it long enough to touch the bottom of the screen.
</DL>
<H4 ALIGN="LEFT"><A NAME="Heading7"></A><FONT COLOR="#000077"><I>fvwm</I>
</FONT></H4>
<P>The <TT>fvwm</TT> window manager for X11 is a derivative of <TT>twm</TT>, redesigned to minimize memory consumption, provide a three-dimensional look to window frames, and provide a simple virtual desktop. Memory consumption is estimated at about a half to a third the memory consumption of <TT>twm</TT>, due primarily to a redesign of <TT>twm</TT>’s inefficient method of storing <I>mouse bindings</I> (associating commands to mouse buttons). Also, many of the configurable options of <TT>twm</TT> have been removed.</P>
<P>XFree86 provides a virtual screen whose operation can be confusing when used with the <TT>fvwm</TT> virtual window manager. With XFree86, windows that appear on the virtual screen actually get drawn into video memory, so the virtual screen size is limited by available video memory.</P>
<P>With <TT>fvwm</TT>’s virtual desktop, windows that don’t appear on-screen don’t actually get drawn into video RAM. The size of the virtual desktop is limited to 32,000×32,000 pixels. It’s impractical to use a virtual desktop of more than five times the size of the visible screen in each direction.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>Memory usage with the virtual desktop is a function of the number of windows that exist. The size of the desktop makes no difference.<HR></FONT>
</BLOCKQUOTE>
<P>When becoming familiar with <TT>fvwm</TT>, it’s recommended that you disable XFree86’s virtual screen by setting the virtual screen size to the physical screen size. When you become familiar with <TT>fvwm</TT>, you may want to re-enable XFree86’s virtual screen.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="439-441.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="442-444.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -