Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copy and paste between Aqua and X11 applications?



On 2007-07-24 20:47:52 -0400, Ambrose Li wrote:
>> On Thu, Jul 19, 2007 at 07:51:46PM -0700, Ben Byer wrote:
>> > It's beginning to seem like xclipboard cures all ills -- I just
>> > tried pasting from Aqua into konsole, with no luck,

I recall that there are two (incompatible) ways to paste data in X11:

  * Middle-click: this pastes the primary selection. If the primary
    selection is empty, some rare applications (e.g. xterm, but not
    GTK apps) paste the cut buffer 0 instead (but the cut buffers
    only support ISO-8859-1).

  * Ctrl-V (or Meta-V? or the Paste menu item, if there's one): this
    pastes the X11 clipboard.

Note: some applications may change this (in particular via options).

So, if you have tried both the middle-click and the other way (I don't
know konsole, but as it is a terminal, Ctrl-V should have been replaced
by something like Alt-V or Meta-V, or the Paste menu item), I suppose
that the data were only in the cut buffer or something like that.

Also, if only konsole has the problem, this can mean that some selection
mechanism (like the primary selection) is disabled in this application
(indeed, the middle-click paste may disturb users and may be dangerous
in a terminal if done by mistake).

>> > and then I ran xclipboard and everything started working just
>> > fine.

I think that xclipboard allows you to make data present in some
selection mechanism available to other mechanisms. That's why it
fixes the problem.

>> > It's still a bug, but it cuts out a few steps.

Not sure this is a bug. It's perhaps due to the bad design of
copy-paste in X11.

> Unfortunately for Chinese the opposite is true. Sometimes I leave
> xclipboard running by mistake, and everything I try to paste (that
> is, in Chinese) become question marks :-(

Perhaps because xclipboard takes the cut buffer 0 and transform
it into a primary selection. Do accented characters available in
ISO-8859-1 (e.g., é) also become question marks?

-- 
Vincent Lefèvre <email@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >Re: copy and paste between Aqua and X11 applications? (From: "Adam D. I. Kramer" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Rich Cook <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Adam D. I. Kramer" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Rich Cook <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Adam D. I. Kramer" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Rich Cook <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Itai Seggev <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Ben Byer <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Itai Seggev <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Ambrose Li" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.