Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!eru!hagbard!sunic!news.funet.fi!tut!ks From: ks@tut.fi (Syst{ Kari) Newsgroups: comp.windows.news Subject: Selections in OW 2.0, How to copy from appl. to another ? Message-ID: Date: 27 Sep 90 16:13:00 GMT Sender: news@funet.fi (#News ) Distribution: comp Organization: Tampere Univ. of Technology, Finland. Lines: 47 If problems in using copy/paste between different applications in OW 2.0. Now I'm requesting help or pointers to help. After doing some experiments I have found out the following: There seems to be three families of applications in my OW 2.0 environment: xview-applications (mailtool, shelltool etc.) X-applications (xterm, xemacs etc.) NeWS-application (psterm, nemacs etc.) I'm can copy/paste information from application to another inside such family, but I have difficulties in copying the information to/form application of a different family. In NeWS the selection-dict (got by operator 'getselection') may contain a key XSelection? (=true), but I don't know how to get the contents of such selection. In the other direction I can set a PrimarySelection in a NeWS-application, and my xterm is able to use that selection. The xview-applications seem to have they very own selection-buffers and a special (undocumented?) program 'xv_get_sel' can get the contents of a the selected text from a xview-application. Unfortunately if no text is selected, I get a error message X Error: BadWindow Request Major code 2 () Request Minor code 1 ResourceID 0xb00004 Error Serial #148 Current Serial #148 and if my console happens to be xterm, it dies ! -- This article represents my personal views. Quote of the year: "X is the Fortran of windowing systems." Kari Systa, Tampere Univ. Technology, Box 527, 33101 Tampere, Finland work: +358 31 162585 fax: +358 31 162913 home: +358 31 177412