This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: clipboard


/dev/clipboard does exist on cygwin.  (I should know; I wrote it.)  It's
read only right now, and because it's stateless you must read the entire
contents into a single buffer all at once.  Thus, your buffer needs to
be at least as big as the contents -- 'cat', by the way, uses a 4k
buffer.

So 'cat /dev/clipboard' will only get the first 4k of clipboard
contents.

But it *is* there.

If that won't do it for you, try the misc package at
http://www.neuro.gatech.edu/users/cwilson/V1.1/misc/

It contains 'putclip' and 'getclip'.

--Chuck


Jim Baumbach wrote:
> 
> In the absence of /dev/clipboard, is there a way to read clipboard data?
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]