Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!bloom-beacon!SASUN1.EPFL.CH!brossard From: brossard@SASUN1.EPFL.CH ("", Alain Brossard EPFL-SIC/SII) Newsgroups: comp.windows.x Subject: Xview and cut & paste Message-ID: <9010231134.AA18639@sasun1.epfl.ch> Date: 23 Oct 90 11:34:00 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 36 I'm having mucho problems with the interactions between the Athena Widgets and the xview programs when it relates to cut & paste. The Xaw, uses the primary selection: the left mouse button selects and the selection is put in the primary buffer. But what do the xview programs use? Their select has the same behavior so going from xview -> Xaw is easy. But where do the selections go when you press "Copy" or "Cut"? Following the suggestion from Ridge McGhee, I tried using xcutsel. Without more informations than this I succeeded in pasting text from Xaw -> xview by: using one xcutsel to copy the PRIMARY to buffer0 and one xcutsel to copy from buffer0 to the SECONDARY and then paste to the xview application with the "paste" key. BUT it only works for ONE paste, doing two in a row with "mail" in the buffer gives: "mail^@^@^@^D" (Sparring you from the actual control characters). From now on, cut and paste within that xview application will never work! It will always paste "^@^@^@^D". There is definite correlation between the length of the strings. Starting a new xview applications (eg: mailtool) has no effect. One more piece of information is that the "copy 0 to SECONDARY" button of xcutsel stays activated during this time (it stays the owner). Doing a further use of xcutsel works so now I have the following working: Xview -> Xaw Xaw -> Xview but not Xview -> Xview !!! So how to I make Xaw and Xview talk to each other? Anybody from Sun cares to comment? I don't think it is a good reflection on the product if it doesn't talk to the rest of the world and even worse I haven't found any documentation on this particular problem. Alain Brossard, Ecole Polytechnique Federale de Lausanne, SIC/SII, EL-Ecublens, CH-1015 Lausanne, Suisse brossard@sasun1.epfl.ch