Section 12.2. Running X11

12.2. Running X11

X11 can be run in two modes, full screen or rootless (the default). Both of these modes run side-by-side with Aqua, although full-screen mode hides the Finder and Mac OS X's desktop. (To hide X11 and return to the Finder, press Option- -A.)

To launch the X server, double-click the X11 application (in /Applications/Utilities ). An xterm window (which looks similar to a Mac OS X Terminal window) opens, sporting Aqua-like buttons for closing, minimizing, and maximizing the window. Also, X11 windows minimize to the Dock, just like other Aqua windows . Figure 12-1 shows a Terminal window and an xterm window side-by-side.

Figure 12.1. A Terminal and an xterm sporting the Aqua look

If you're using the default configuration, you'll also notice three obvious differences from a Terminal window. In particular:

  • The xterm window has a titlebar that reads "xterm"

  • The xterm window does not have vertical and/or horizontal scrollbars

  • The xterm window does not have a split window option

A less obvious difference between a Terminal window and an X11 xterm window is that Control-clicking (or right-clicking) in an xterm window does not invoke the same contextual menu that it does in a Terminal window. Control-clicking, Control-Option-clicking, and Control- -clicking in an xterm invokes xterm -specific contextual menus , as shown in Figures 12-2, 12-3, and 12-4. If you have a three-button mouse, Control-clicking with the right mouse button does the same thing as Control- -clicking; Control-clicking with the middle button does the same thing as Control-Option-clicking.

Figure 12.2. Control-click (or Control-left-click) in an xterm window

Figure 12.3. Control-click (or Control-left-click) in an xterm window

You can use Fink to install an xterm replacement such as rxvt or eterm .For more information about Fink, see http://fink. sourceforge .net.


Figure 12.4. Control- -click (or Control-right-click) in an xterm window

Mac OS X emulates right-mouse clicks with Control-click. In X11, you can configure key combinations that simulate two- and three-button mice.

By default, Option-click simulates the middle mouse button, and -click simulates the right mouse button. You can use X11 Preferences to enable or disable this, but you cannot change which key combinations are used (although you can use xmodmap as you would under any other X11 system to remap pointer buttons).


In rootless mode, X11 applications take up their own window on your Mac OS X desktop. In full-screen mode, X11 takes over the entire screen and is suitable for running an X11 desktop environment (DTE) like GNOME, KDE, or Xfce. If you want to run X11 in full-screen mode, you'll have to enable this mode in the X11's preferences by clicking the Output tab and selecting the full-screen mode checkbox.

You can still access your Mac OS X desktop while in full-screen mode by pressing Option- -A. To go back to the X11 desktop, click on the X11 icon in the Dock or use -Tab and then press Option- -A.




MAC OS X Tiger in a Nutshell
Mac OS X Tiger in a Nutshell: A Desktop Quick Reference (In a Nutshell (OReilly))
ISBN: 0596009437
EAN: 2147483647
Year: 2003
Pages: 130

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net