paste into xgterm tek window?
Mark E. Cornell wrote on Dec 16, 2010
Hello all,
This must be a FAQ, but I can't find the answer. I'd like to be able to paste a filename, say, into an xgterm tek window, as in ':i filename' inside implot. I can cut and paste into the VT100 window no problem, but the tek window seems to take over the mouse buttons. I see this issue in an xterm as well as an xgterm, on both my Macs and my Suns, so this must be a general X11 thing rather than an IRAF thing, but I'd be grateful for any insight.
Thanks,
Mark
This must be a FAQ, but I can't find the answer. I'd like to be able to paste a filename, say, into an xgterm tek window, as in ':i filename' inside implot. I can cut and paste into the VT100 window no problem, but the tek window seems to take over the mouse buttons. I see this issue in an xterm as well as an xgterm, on both my Macs and my Suns, so this must be a general X11 thing rather than an IRAF thing, but I'd be grateful for any insight.
Thanks,
Mark
Mike Fitzpatrick wrote on Dec 16, 2010
Hi Mark,
This is actually in the X11 FAQ:
Note that if you're forced to use an Xterm, you can use the 'xtermjh' graphcap entry in IRAF -- this puts the status line (and command i/o) on the VT100 window and as a side-effect the paste then works (e.g. Option-MouseButton to paste on a Mac). Unfortunately, there isn't a similar entry for XGterm.
Cheers,
-Mike
This is actually in the X11 FAQ:
Why can't I cut/paste in xterm?
When an application sets xterm to any of its mouse tracking modes, it reserves the unshifted mouse button clicks for the application's use. Unless you have modified the treatment of the shifted mouse button events (e.g., with your window manager), you can always do cut/paste by pressing the shift key while clicking with the mouse.
Note that if you're forced to use an Xterm, you can use the 'xtermjh' graphcap entry in IRAF -- this puts the status line (and command i/o) on the VT100 window and as a side-effect the paste then works (e.g. Option-MouseButton to paste on a Mac). Unfortunately, there isn't a similar entry for XGterm.
Cheers,
-Mike
Mark E. Cornell wrote on Dec 16, 2010
Hi Mike,
Thanks for the quick reply. Yes, I had actually seen the X11 FAQ entry, but I still can't cut/paste, even with a shifted mouse button click. Is that supposed to work?
Thanks for the tip about xtermjh. I didn't know that one.
This issue is weird, because I swear this used to work and I can't figure out what changed.
Thanks,
Mark
Thanks for the quick reply. Yes, I had actually seen the X11 FAQ entry, but I still can't cut/paste, even with a shifted mouse button click. Is that supposed to work?
Thanks for the tip about xtermjh. I didn't know that one.
This issue is weird, because I swear this used to work and I can't figure out what changed.
Thanks,
Mark
Mike Fitzpatrick wrote on Dec 16, 2010
I couldn't get it to work at all, however be sure the NumLock key isn't enabled since this changes the event masking and does all sorts of weird things. You might also check your resource files to be sure you're not remapping the keys/events in some way.
Last post on Dec 16, 2010