Re: copy and paste between X11 and native apps
Re: copy and paste between X11 and native apps
- Subject: Re: copy and paste between X11 and native apps
- From: Ronald Cohen <email@hidden>
- Date: Sat, 9 Oct 2004 08:02:05 -0700
Ya know, having to do something extra at a command line is more work
than just doing the procedure that several have noted before, which is
to
copy something small in the Aqua clipboard before doing the copy from X
(that is, making an x selection and then doing a command-c).
It would just be nice if Apple fixed this so that it worked reliably
without
the extra step.
rc
On Oct 9, 2004, at 7:50 AM, Kevin Geiss wrote:
There is a program called 'xclip'
http://people.debian.org/~kims/xclip
it is similar to pbcopy and pbpaste, but it's an X11 program and deals
with the X11 clipboard.
xclip has options to allow you to select either the primary selection
or the clipboard. (I think the primary selection is equivalent to
highlighting then hitting the middle mouse button; the clipboard is
equivelant to what you get by using ctl-c and ctl-v in gtk+ apps, and
is probably what you're looking for)
at worst you could do something like this:
xclip -o | pbcopy
:D
On Sat, Oct 09, 2004 at 07:15:22AM -0700, Ronald Cohen wrote:
That is useful to know. So does anyone know how to copy to the "real"
X clipboard from an xterm?
On Oct 8, 2004, at 10:57 PM, John Davidorff Pell wrote:
Since you use emacs, I assume that you know how to use emacs' own
copy-and-paste functionality (which uses the X clipboard when in X).
Anything that goes into the *real* X clipboard (not the X selection)
is *immediately* mirrored in the Aqua clipboard, and vise-versa.
Until
I figured this out, it used to make me crazy because there was a
delay
between copy (from X) and paste (to aqua).
In XEmacs, click the copy button in the tool bar (I forget the
key-combo) and try pasting into Terminal.app, I'll bet that it will
work flawlessly every time. The X
selection-to-aqua-clipboard-on-CMD+C
is something that I still have trouble with, because I'm used to ?-C,
but in any X app that uses the X clipboard (all good ones do) you
just
have to learn the shortcut to copy-to-X-clipboard and you're good to
go.
JP
On 7 Oct 2004, at 16:50, Young Hyun wrote:
The unreliability of copying and pasting between X11 and native
(Aqua)
applications has been bugging me for a few months now, and I was
wondering
whether anyone knew of a good fix. I'm using quartz-wm and X11.app
v1.0.
Copying text from native applications and pasting into X11
applications
works flawlessly. However, copying from X11 apps and pasting into
native
apps is highly unreliable. In this latter direction, I mostly copy
from
xemacs into Terminal.app. (I typically work on several remote
machines at
once, so I run xemacs v21.4 p14 under FreeBSD 4.8, v21.4 p15 under
MacOS X
10.3.5, and v21.5 beta 9 under Solaris 2.6, and I have this problem
with
all these versions.)
The steps you would think should work are
1) select text in an xemacs window,
2) hit cmd-c, and
3) click in a Terminal.app window and hit cmd-v.
However, in the majority of cases, I end up getting the wrong text
pasted
into Terminal.app. Typically, the effect is as if the text was
never
copied on the X11 side, so that whatever happened to be in the
pasteboard
gets pasted. I've tried hitting cmd-v multiple times before
pasting,
just
to make sure it registered, but to no avail.
I've found a workaround that nearly always works, but this is a huge
pain,
considering that I often need to copy-and-paste dozens of times each
day.
The workaround for copying from X11 to Aqua is as follows:
1) select text in a *Terminal.app* window,
2) hit cmd-c,
3) hit cmd-v to paste into that Terminal.app window,
4) hit ctr-u to clear what you just pasted, and
5) follow the normal procedure for copying and pasting from X11 to
native apps.
Sometimes, I can get away with skipping steps 2-4; that is, just
initiating a copy operation from a native app is enough to ensure
that the
subsequent copy operation from an X11 app is picked up by quartz-wm.
Has anyone else run into this problem, and is there a real fix for
it?
A day doesn't go by when I don't curse this bug.
--Young
--
Blood is thicker than water... and much tastier.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden