Subject: cut & paste

From: Stuart Norton <[email-masked]>
Date: Tue, 30 Jan 2001 12:28:59 -0800 (PST)

I'm using pine 4.03 under UNIX (actually, on a PC through hummingbird
exceed, which shouldn't change matters) and having trouble with the
cut/paste features.  Specificially, if I cut text with ^K the text is not
pasted into the X primary cut buffer.  According to previous messages on
this list, I thought it should be.  Or is that feature just not supported?

I need to write a macro for cutting the entire text of a letter and
pasting it into a different window, and there seems to be no way to do
that with a multiple-page letter...?  I can cut the entire text with ^K,
but I can't paste that text into a different window.

The problem occurs with x-mouse enabled or disabled.  Any ideas for a
workaround?  

Thanks in advance,
Stuart

----------------------------------------------------------------------
---                         Stuart Norton                          ---
---                       [email-masked]                       ---
---	Astronomy & Astrophysics  -  University of California      ---  
---			Santa Cruz, CA  95064                      ---
---			   (831) 459-4362                   	   ---
----------------------------------------------------------------------

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Scott Leibrand <[email-masked]>
Date: Tue, 30 Jan 2001 13:07:04 -0800 (PST)

> The problem occurs with x-mouse enabled or disabled.  Any ideas for a

Pine's ^K/^U cut-and-paste doesn't use any X cut buffers, (or the
clipboard, as Windows users usually refer to it).  Instead, it uses an
internal buffer that works no matter whether you're using X, a window
manager, or none of the above.

If you want to copy and paste between windows, you'll need to use your
mouse to select text, and then use the WM's command (usually one of the
mouse buttons) to copy and paste the text.  As far as I know, you can't
cut text this way - just copy it.

If the normal mouse selection doesn't work, you may either need to disable
the mouse in Pine (through Main, Setup, Config), or hold down a key
(usually Shift, I think) while you do the selection.

-- 
Scott Leibrand
[email-masked]            (Yes, that is a valid address.)
http://students.washington.edu/leibrand
* Opinions expressed are mine.  Everyone else can get their own.   :)   *
* RCW 19.190 notice: This email address is located in Washington State. *
* Unsolicited commercial email may be billed $500 per message.          *

---

From: Jacob Morzinski <[email-masked]>
Date: Tue, 30 Jan 2001 16:12:21 -0500 (EST)

On Tue, 30 Jan 2001, Stuart Norton wrote:
> pasted into the X primary cut buffer.

As far as I can tell (a brief glance at the "Xterm Control Sequences"
document), applications running in an xterm will only interact with
the "X" part of the xterm via mouse-tracking callbacks.  It appears
that the only way for the running application to tell the xterm to
highlight a range of text is when both the xterm and the application
agree that they're currently tracking the mouse pointer around the xterm.

Your mileage may vary, but it looks like you'd have to use the mouse.
The only workaround I can think of is to escape out to an alternate
editor, and perhaps have that alternate editor be an X application
like emacs, which could then finish the rest of your script.

 Jacob Morzinski                                [email-masked]