clipboard library?
[1/4] from: notofo::earthlink::net at: 7-Sep-2004 21:57
Hi guys,
does anybody know which library handles the clipboard in linux?
[2/4] from: SunandaDH::aol::com at: 8-Sep-2004 11:34
Tom:
> does anybody know which library handles the clipboard in linux?
Not sure I understand the question, so apologies if my attempt at a response
does not make sense.
As far as I know a text-only clipboard is integral to both REBOL and Linux
--- no need for extra libraries.
Examples in the REBOL console:
print read clipboard://
write clipboard:// "copied text"
do load clipboard://
Sunanda.
[3/4] from: notofo:earthlink at: 8-Sep-2004 15:11
[SunandaDH--aol--com] wrote:
>Tom:
>>does anybody know which library handles the clipboard in linux?
<<quoted lines omitted: 9>>
> do load clipboard://
>Sunanda.
Thanks. I was wondering what library handled it to begin with, not
about an extra one. Looking through /lib/ has not given me a clue.
Searching the web has narrowed it down a bit, but still no real answer.
Maybe I should have flagged this "off topic," but maybe someone will
want to write their own clipboard routines...
-tom
[4/4] from: krobillard::san::rr::com at: 8-Sep-2004 14:59
On Wednesday 08 September 2004 13:11, Tom Foster wrote:
> Thanks. I was wondering what library handled it to begin with, not
> about an extra one. Looking through /lib/ has not given me a clue.
> Searching the web has narrowed it down a bit, but still no real answer.
>
> Maybe I should have flagged this "off topic," but maybe someone will
> want to write their own clipboard routines...
>
> -tom
The clipboard on Linux is implemented using X11 selections. See
http://freedesktop.org/Standards/ClipboardsWiki. If you look at the Qt
source code you can find a working example in qclipboard_x11.cpp.
The REBOL clipboard still seems to be broken on Linux. Using rebview1247042 I
can copy from X to REBOL, but not the other way around.
-Karl
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted