Manipulate the clipboard from your Perl 6 app.
Requires xclip (Linux), pbcopy (OS X), or clip (Windows).
Ubuntu: sudo apt-get install xclip
panda --notests install git://github.com/kmwallio/p6-OS-Clipboard.git
--notests for now. Attempting to install over SSH halts during tests.
Put something in the clipboard.
use v6;
use OS::Clipboard;
clipboard-copy('text')
Take something out of the clipboard.
use v6;
use OS::Clipboard;
my $content = clipboard-paste();
- Add support for arbitrary content...
- Check for multiline support and whatnot...
- Improve tests
- Properly escape strings...
- Figure out proper Windows support...
- pod comments