Xref: utzoo comp.windows.x:35825 comp.windows.open-look:1303 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!imp!diablery.10A.com!devil From: devil@diablery.10A.com (Gil Tene) Newsgroups: comp.windows.x,comp.windows.open-look Subject: Re: Cut and Paste under OpenWindows Message-ID: <332@imp.UUCP> Date: 28 Apr 91 17:06:54 GMT References: <9104231231.AA22736@cas.org> <7414@auspex.auspex.com> Sender: devil@imp.UUCP Followup-To: comp.windows.x Organization: Diablery, cloud seven, Hell. (also 10A Inc.) Lines: 33 Nntp-Posting-Host: imp In article <7414@auspex.auspex.com>, guy@auspex.auspex.com (Guy Harris) writes: > *Text.Translations: #override \ > MetaW: extend-end(CLIPBOARD) Thanks! I needed that one... now my rn can interact with textedit... > Unfortunately, I have been unable to convince the stupid "xterm" widget > (i.e., the widget internal to "xterm" that implements "xterm") that I > want to have a *keyboard* event mean "copy to clipboard", which makes it > a real pain to copy from "xterm" to an XView application. Let me return the favor. I got this off the net a while back, and don't remember the source (Thanks to whomever it was!) : XTerm*VT100.Translations: #override \ Shift Select: select-cursor-start()\ select-cursor-end(CLIPBOARD, CUT_BUFFER0, PRIMARY)\n\ ~Ctrl ~Meta : insert-selection(CUT_BUFFER0, CLIPBOARD, PRIMARY)\n\ ~Ctrl ~Meta : select-end(CLIPBOARD, CUT_BUFFER0, PRIMARY)\n\ L8: insert-selection(CLIPBOARD, CUT_BUFFER0, PRIMARY)\n This works for me in an xterm. it makes the normal Xaw-style selection in the xterm go automatically into the clipboard, so a paste in an Xview based app works fine with it. Have fun, -- Gil. -------------------------------------------------------------------- -- Gil Tene "Some days it just dosn't pay - -- devil%imp@uunet.uu.net to go to sleep in the morning." - -- devil@diablery.10A.com - --------------------------------------------------------------------