📄 439-441.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=439-441//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch21/437-438.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="441-442.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 22<BR>Using X Windows
</FONT></H2>
<P><I>by Steve Burnett</I></P>
<DL>
<DT><B><BIG>I</BIG>n this chapter
</B><DT>Navigating X Windows
<DT>Using Window Managers for Linux
<DT>Using X Applications in Red Hat
<DT>Using X Windows Applications with Slackware 96
<DT>Having Fun with DOOM for Linux
</DL>
<P>If you’re familiar with other GUIs, such as Microsoft Windows or the Macintosh user interface, you shouldn’t find many differences in X Windows. X Windows presents to the user several windows, each showing the output of an X Windows application, called a <I>client</I>. The client can be running on the user’s PC, which is more than likely with Linux, or on another workstation on the network.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>Remember that with X Windows, the client/server paradigm is reversed from the usual meaning of the client and server.<HR></FONT>
</BLOCKQUOTE>
<P>How you move around in X Windows very much depends on window managers. Most windows use an on-screen pointer called a <I>cursor</I> to indicate where you’re working. The cursor can take on many shapes, depending on what you’re doing and what window manager you’re running.</P>
<H3><A NAME="Heading2"></A><FONT COLOR="#000077">Navigating X Windows</FONT></H3>
<P>X Windows, like most GUIs, allows input from the keyboard and the pointing device, usually a mouse. Typically, for a window to accept input, it must be the active window. An active window normally has a different appearance (for example, a highlighted border) than inactive windows.
</P>
<P>Making a window active depends on the window manager. Some window managers allow the window to become active by merely moving the cursor into the window; others require you to click the window with the mouse, like you do in Microsoft Windows.</P>
<H4 ALIGN="LEFT"><A NAME="Heading3"></A><FONT COLOR="#000077">Using Menus</FONT></H4>
<P>Many GUIs on PCs today provide drop-down and pop-up menus. Again, such items depend on the window manager, including the types of menu choices provided. Most X Windows window managers don’t have a main menu bar across the top of the monitor; instead, they use a floating menu. You typically invoke this floating menu by clicking over an empty area of the desktop. You hold down the mouse button and drag the cursor through the various menu selections. When you find the desired menu choice, simply release the button, which is very much like how you navigate menus on a Macintosh and very unlike how you navigate menus under Microsoft Windows.
</P>
<H4 ALIGN="LEFT"><A NAME="Heading4"></A><FONT COLOR="#000077">Using Virtual Terminals in X Windows</FONT></H4>
<P>Your X server runs on a virtual terminal assigned by Linux. This terminal is assigned to the seventh virtual terminal, which you can reach with the <Ctrl-Alt-F22> key from a character terminal. From X Windows you can reach the other terminals with the <Ctrl-Alt-F<I>x</I>> key combination, where <I>x</I> represents the number of the virtual terminal you want to access. Although accessing the other virtual terminals can be handy, X Windows does allow you to start character terminal emulators, called <I><TT>xterm</TT> sessions</I>.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>If your X server is running, you must use the <Ctrl-Alt-Fx> combination to move from the X server to a virtual terminal. You can still use the <Alt-Fx> combination to move among the virtual terminals.<HR></FONT>
</BLOCKQUOTE>
<H3><A NAME="Heading5"></A><FONT COLOR="#000077">Using Window Managers for Linux</FONT></H3>
<P>As stated earlier in the chapter, X Windows doesn’t specify a window manager. The look and feel of X Windows is left up to the user—completely up to the user. Almost every aspect of the behavior of the GUI is in your control. In this spirit, Linux doesn’t provide just one window manager for X Windows, although the default installation of Red Hat and Slackware installs <TT>fvwm</TT> as the default window manager. Table 22.1 lists some of the various window managers available for Linux.</P>
<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 22.1</B> Some Window Managers Available for Linux
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TH WIDTH="30%" ALIGN="LEFT">Name
<TH WIDTH="70%" ALIGN="LEFT">Description
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TD><TT>twm</TT>
<TD>Tom’s window manager
<TR>
<TD><TT>fvwm</TT>
<TD>Virtual window manager for X11
<TR>
<TD VALIGN="TOP"><TT>fvwm95</TT>
<TD>Virtual window manager for X11 that looks much like Microsoft’s Windows 95
<TR>
<TD><TT>mwm</TT>
<TD>Motif window manager
<TR>
<TD><TT>olwm</TT>
<TD>Openlook’s window manager, based on Sun’s Open Look
<TR>
<TD><TT>olvwm</TT>
<TD>Openlook’s virtual window manager
<TR>
<TD><TT>Enlightenment</TT>
<TD>A popular and elegant windowing manager
<TR>
<TD VALIGN="TOP"><TT>CDE</TT>
<TD>The Common Desktop Environment, an X GUI that’s been ported to many UNIXes
<TR>
<TD VALIGN="TOP"><TT>KDE</TT>
<TD>The K Desktop Environment, a free variation of the Common Desktop Environment
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch21/437-438.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="441-442.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 + -