On 02/28/2012 23:43, Ulli Horlacher wrote:
> $Bill<
ne...@todbe.com> wrote:
>> On 02/27/2012 06:56, Ulli Horlacher wrote:
>>> Is there a native way to read the contens of the X selection (mouse)
>>> buffer?
>>>
>>> I can access it via:
>>>
>>> if (`xprop -root CUT_BUFFER0` =~ /"(.*)"/) {
>>> print "X selection: $1\n";
>>> }
>>>
>>> but this needs an extra sub process.
>>
>> I assume you're on a *NIX system. On Win32, you can for example
>> get the selected text line in a Listbox widget thusly:
>
> No, I do not mean text within a Tk window, but the generic X11 clipboard,
> used by all programs. X is not UNIX specific, it exists on a broad range
> of systems.
But mostly NIX. I used XWindows back in my Sparc days.