On 2020-01-26 18:43, Samuel Sieb wrote:
On 1/26/20 6:32 PM, ToddAndMargo via users wrote:
> On 2020-01-26 17:55, Gordon Messmer wrote:
>> On 1/25/20 3:40 PM, ToddAndMargo via users wrote:
>>> Anyone know what the system calls are to write and read from the
>>> primary and secondary clipboards?
>>
>>
>> It's not really that simple (and as Samuel pointed out, not a system
>> call). Applications can set the clipboard contents to a list of data
>> types that they can export their "copied" data as, so reading may
>> mean connecting to the application that owns the clipboard, asking
>> for a list of data types, selecting one that's supported, and then
>> asking for that type specifically.
>>
>>
https://developer.gnome.org/gtk3/stable/gtk3-Clipboards.html
>
> I see what you mean!
Why are you looking for this?
I adore Raku/perl6. Every so often I torture myself
trying to use Raku's NativeCall to run system calls.
Currently I have a module that calls xclip. I thought
it would be an interest exercise to go directly.