Re: CURSOR problems [message #45280 is a reply to message #45220] |
Wed, 24 August 2005 06:20   |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
In article <BF314661.259D%rfrench@wellesley.edu>,
"Richard G. French" <rfrench@wellesley.edu> wrote:
> OK, I have done this, but I'm obviously missing something. Here is what I
> did:
>
> 1) add the above code to .cshrc
> 2) Fire up X11
> 3) Fire up Terminal and open a shell (using tcsh)
>
> printenv DISPLAY gives a null. That seems to be the first problem.
I set up my DISPLAY variable like this for tcsh:
if ($?DISPLAY == 0) then
if ($?REMOTEHOST) then
setenv DISPLAY ${REMOTEHOST}:0
else
setenv DISPLAY :0
endif
endif
Apple set up the shells in a very convoluted way, so make sure that you are
actually executing your startup scripts (e.g., with echo). If you would like to
see my whole startup-script set up, send an e-mail to k-bowman at tamu.edu
(replace the at).
On my local machine I see this:
bowman> echo $DISPLAY
:0
On a remote machine I see
csrpc> echo $DISPLAY
localhost:10.0
which is standard for X-Windows forwarding through ssh. I have had problems
running X-Windows apps from multiple remote hosts simultaneously, apparently due
to .Xauthority file locking conflicts.
> From the terminal window, I can open an xterm, and interestingly it DOES
> have a DISPLAY :0.0 but I can't cut and paste just using the mouse from the
> first terminal window to the newly created one. If I open a second xterm,
> then I CAN cut and paste between those two. If I understand your post
> correctly, I should be able to use highlight and middle-button paste between
> TERMINAL windows, not xterms that I fire up from the Terminal application.
>
> So, in my setup, the terminal app does worse than xterm in X11, where at
> least cut and paste work OK. I'd appreciate any suggestions on how to solve
> this problem.
X-Windows apps copy to the X-Windows server buffer. That buffer is available
for pasting to other X-windows apps, but not to Mac apps.
Mac apps copy to the OS X global buffer, which will transfer just about anything
(pictures, text, etc.) to another Mac app. Unfortunately, communication between
X-Windows and the rest of the Mac OS X is virtually nonexistent.
Terminal.app is a standard Mac application, so copy and paste use cmd-c and
cmd-v. You can copy and paste between Terminal windows and other Mac apps, or
between different Terminal windows. If your 3-button mouse has a control panel,
you may be able to program it to work like an X-Windows mouse for copy and paste.
> By the way, what fonts do you use in your terminals? The list of choices is
> very long.
I like Monaco.
Cheers, Ken B.
|
|
|