First, it is possible to open X11-based applications from the
Terminal application. To launch an X11-based application from the
Terminal application, you need to set the shell environment variable
DISPLAY as follows for tcsh:
setenv DISPLAY 0:0
If you are using a Bourne-compatible shell, such as
bash, you could use the following:
DISPLAY="0:0"; export DISPLAY
TIP:
You may want to add this functionality to your startup configuration
script .tcshrc (for tcsh)
or .bashrc (for bash).
You can also copy and paste between X11 and Mac OS X applications.
For example, to copy from an xterm, select some
text with your mouse. This action places the selected text into the
Mac clipboard. To paste the contents of the clipboard into a Mac OS X
application (such as the Terminal), simply press
-V to paste the text.
To copy from a Mac OS X application, highlight some text and press
-C. The copied text can be pasted into
an xterm window by pressing the middle button of
a three-button mouse or by Command-clicking in the X11 application.