🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2198

Re: Cutting text out of epoch

#2198
From: Alan M. Carroll
Date: Mon, 18 Feb 1991 16:04
31 lines
1995 bytes
The problem is that Epoch uses cut buffers, and xterms like
selections. Here is something that can make things work a little
better.
-------
Here is a nice little hack to make life easier to cut & paste between
epoch and xterms or other Toolkit-based applications. Just before cutting
text into the cut buffer, clear the current selection, so that when you paste
in  a xterm afterwards, you will really paste the epoch text, no an old
selection hiding somewhere...

Here is the patch to src/x11fns.c:
avahi$ diff -c x11fns.c.orig x11fns.c
*** x11fns.c.orig       Wed Jul 18 11:06:01 1990
- --- x11fns.c    Wed Jul 18 11:09:35 1990
***************
*** 93,98 ****
- --- 93,99 ----
        check_xterm ();

        BLOCK_INPUT ();
+       XSetSelectionOwner(XD_display, XA_PRIMARY, None, CurrentTime);
        XStoreBytes (XD_display, XSTRING (string)->data,
                     XSTRING (string)->size);
        UNBLOCK_INPUT ();

(hack found by Arnaud Le Hors, lehors@mirsa.inria.fr, Koala Project)

-- 
Alan M. Carroll                "I hate shopping with the reality-impaired"
Epoch Development Team                 - Susan
CS Grad / U of Ill @ Urbana    ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll
Technical Details
Message-ID: <1991Feb18.160413.26325@ux1.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!uiucdcs!carroll
References: <SMARTIN.91Feb13090410@torsys02_1.uucp> <ANTHONY.91Feb17151722@innisfre.cs.UAlberta.CA>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,9a29fb6e0a68ed05
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-02-18 10:43:44 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!uiucdcs!carroll
From: carroll@cs.uiuc.edu (Alan M. Carroll)
Newsgroups: gnu.epoch.misc
Subject: Re: Cutting text out of epoch
Message-ID: <1991Feb18.160413.26325@ux1.cso.uiuc.edu>
Date: 18 Feb 91 16:04:13 GMT
References: <SMARTIN.91Feb13090410@torsys02_1.uucp> <ANTHONY.91Feb17151722@innisfre.cs.UAlberta.CA>
Sender: news@ux1.cso.uiuc.edu (News)
Reply-To: carroll@cs.uiuc.edu (Alan M. Carroll)
Distribution: gnu
Organization: Technophiles Inc. - Engineers with Attitude
Lines: 31
Posted: Mon Feb 18 10:04:13 1991