Sha256: 3a0eb6bef15088bc153f09a8aff3d3bc18489198b2ef0306b6c436df773acb2d

Contents?: true

Size: 1.43 KB

Versions: 4

Compression:

Stored size: 1.43 KB

Contents

= clipboard
Access the clipboard and do not care if the OS is Linux, MacOS or Windows.

=== Usage
You have <tt>Clipboard.copy</tt>,

<tt>Clipboard.paste</tt> and

<tt>Clipboard.clear</tt>

Have fun ;)

==== Multiple clipboards
On Linux, you can choose, from which clipboard you want to +paste+, default is CLIPBOARD.

+copy+ copies to all clipboards in Clipboard::CLIPBOARDS.

==== Windows Encoding note
If you paste with 1.9, the Clipboard encoding will be translated to your <tt>Encoding.default_external</tt>.

If you paste with 1.8, it will fallback to CP850 encoding.
Copying with 1.8 will fallback to the +clip+ utility, which is installed by default since Vista

==== SSH note
To you use the clipboard through ssh, you need to install <tt>xauth</tt> on your server and connect via <tt>ssh -X</tt> or <tt>ssh -Y</tt>.

=== Non-gem requirements
* *Linux*: +xclip+, you can install it on debian/ubuntu with <tt>sudo apt-get install xclip</tt>

=== Todo
* Don't depend on +xclip+

...if there is enough demand or motivation for me °_°

==== Planned for 0.9.5
* Fallback to <tt>~/.clipboard</tt> if the real clipboard can't be accessed.
* Also check for +xsel+ on linux

=== blip
Copy and paste from the commandline (like xclip, pbpaste/pbcopy), but even easier? {blip}[http://rubygems.org/gems/blip]!

=== Copyright
Copyright (c) 2010-2011 Jan Lelis, http://rbjl.net, released under the MIT license

Contributions by and thanks to
* Michael Grosser

J-_-L

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clipboard-0.9.8 README.rdoc
clipboard-0.9.7 README.rdoc
clipboard-0.9.6 README.rdoc
clipboard-0.9.5 README.rdoc