Patrick Wade wrote,
>Jason LaPier wrote:
>> How do I redirect shell (bash) output to the clipboard?
>> 
>> I know I can manually select it or redirect it to a file, but it's long and
>> I'm just going to copy and paste anyway - I know there's a way to > or | it
>> straght to clip...
>> 
>
>A utility called xclip is what you want; can take stdin to clipboard or 
>dump stdout from clipboard.

Except that it's not always available.  There's nothing resembling it on
my Slackware system.  There is "xclipboard", but it only views and saves
the clipboard...it doesn't read from stdin, or anywhere else.

It's worth pointing out that X doesn't really have a true clipboard like
Mac and Windows do.  Copy and paste in X are traditionally implemented using
"selections"...copy is implemented by sending the server a message that says,
"I have a selection to offer", and paste is implemented by querying the
server to find out who "owns" the selection, and then sending that
application a message to ask for the data it's offering.

The selection ceases to exist as soon as the owning application releases
it, or terminates, or another application announces that it has pasteable
data available.  There is no way to make a selection persist after the
owning application terminates, except to manually paste the data into
another longer-lived application.

              - Neil Parker
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to