comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » CURSOR problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: CURSOR problems [message #45288 is a reply to message #45220] Tue, 23 August 2005 18:32 Go to previous messageGo to previous message
Richard French is currently offline  Richard French
Messages: 173
Registered: December 2000
Senior Member
On 8/23/05 8:39 AM, in article
1124800745.178227.298470@g47g2000cwa.googlegroups.com, "Patrick Broos"
<patb@astro.psu.edu> wrote:

> I don't have any ideas on your xterm configuration, but as a Solaris
> user just moving to OS-X I do have a suggestion about xterms: leave
> them behind! As long as $DISPLAY is set correctly you can start X11
> programs from a shell running in any terminal application.
> Terminal.app (from Apple) is better than xterm, and iTerm is even
> better than Terminal.app. You'll be able to use much better fonts than
> I could ever get in xterm (on OS-X), multiple ("tabbed") shells, full
> integration with other OS-X applications (e.g. drag a file from Finder
> and the file's path is printed in the shell), standard OS-X keyboard
> shortcuts, configurable menus (e.g. to ssh to favorite other machines),
> middle mouse paste, focus-follows-mouse, etc. Here's some code I found
> to put in .cshrc to set $DISPLAY in all shells:
>
> # Set DISPLAY so that Carbon terminals can run X
> applications.
> # This only works if an X server is running; it's a
> good idea to start
> # an X server at login via System
> Preferences->Accounts->Login Items.
> # Figure the correct value for DISPLAY from the lock
> files /tmp/.X?-lock
> if ($?DISPLAY == 0) then
> foreach x (0 1 2 3 4 5 6 7 8 9 )
> if ( -o /tmp/.X$x-lock ) then
> setenv DISPLAY :${x}.0
> break
> endif
> end
> endif
>
> I choose to start the X11 server automatically at login.
>
> Patrick Broos
>


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.

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.

By the way, what fonts do you use in your terminals? The list of choices is
very long.

Dick French
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: if there is a command "clear lot" in IDLWAVE like "Ctrl+Y" in Windows
Next Topic: Re: Different FFT times for same array size ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:57:16 PDT 2025

Total time taken to generate the page: 0.00480 seconds