On 02/17/2017 06:38 PM, ToddAndMargo wrote:
1)  Is there a reliably Perl 6 way to copy things to the
    clipboard?  (Perl 5 has a module, but it is unreliable
    and I have to make a system call.)

In Linux, OS::Clipboard is using xclip and is writing to the
"mouse over" and "center click" clipboard, not the ctrl-c/v
clipboard.  I wrote him about the issue over on
      https://github.com/kmwallio/p6-OS-Clipboard/issues/1

A quick tutorial on xclip that I wrote myself for the do-it-
your-selfers:

xclip Reference: https://sourceforge.net/p/xclip/code/HEAD/tree/trunk/xclip.c

  to write to the secondary clipboard (<ctrl><c>)
      echo abc | xclip -selection clipboard

  to read from the secondary clipboard (<ctrl><v>)
      xclip -selection clipboard -o

  to write from the primary clipboard  (mouse over)
     echo xyz | xclip -selection primary -o

  to read from the primary clipboard  (center click)
     xclip -selection primary -o


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to