Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!apple!snorkelwacker.mit.edu!bloom-beacon!ZIA.AOC.NRAO.EDU!cflatter From: cflatter@ZIA.AOC.NRAO.EDU (Chris Flatters) Newsgroups: comp.windows.x Subject: Re: Openwidows Cut/Paste and xterms Message-ID: <9012071709.AA23568@zia.aoc.nrao.edu> Date: 7 Dec 90 17:09:53 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 29 Curt Vandetta writes: > I'm wondering if anyone has gotten cut and paste to work between > command tools or shell tools and an xterm window under Openlook ver 2? > I can use the left button to cut and the middle button to paste in > an xterm, and the cut and paste function keys in command tools and > shell tools. But they appear to be using different buffers and I can't > figure out how to make them use the same buffer, any clues? By default xterm uses the primary selection. The XView cut/copy/paste functions use the clipboard selection. Copying text from an XView text or terminal subwindow to an xterm (or any other editable Athena widget) is easy. Use the mouse and the SELECT and ADJUST buttons to select the text you want (do not CUT it). The text should now be highlighted. Move the pointer to the xterm and press the middle button. The highlighted text is now copied to the xterm. Going the other way is not quite so simple since you can not tell XView objects to copy the primary selection from a non-XView object (or if you can I haven't found out how yet) so you have to copy your xterm selection into the CLIPBOARD selection. I believe that you can set up an xterm escape sequence to do this. If you don't have a black belt in xterm customization you can use the xclipboard client as an intermediary. Once you get your xterm selection into the clipboard you can use the OPEN LOOK paste function on it. Chris Flatters