here's a patch for /dev/clipboard that
* allows sequential reads (the existing code only allowed a single
read() ).
* allows writes (sequential only.. I haven't thought thru the logic for
the boundary cases of random writes).
* allows binary data (ie it's 8 bit clean). A text version is exported
for windows, to the first \0.
sample use:
administrator@LIFELESSWKS /usr/src/src/winsup/cygwin
$ cp ~/fport.exe /dev/clipboard
administrator@LIFELESSWKS /usr/src/src/winsup/cygwin
$ cp /dev/clipboard ./t.t
administrator@LIFELESSWKS /usr/src/src/winsup/cygwin
$ diff t.t ~/fport.exe
(Use the attached changelog Chris - it has the tabs intact).
Thursday Mar 22 2001 Robert Collins <[EMAIL PROTECTED]>
* fhandler.h: Extend fhandler_dev_clipboard to support writing.
* fhandler_clipboard.cc: (fhandler_dev_clipboard) Support sequential
reads and
sequential writes. Support for binary data via a native clipboard
format.
* Makefile.in: Link against user32 for the clipboard functions.
clipboard.changelog
clipboard.patch