This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
/dev/clipboard update
- To: <cygwin-patches at cygwin dot com>
- Subject: /dev/clipboard update
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- Date: Thu, 22 Mar 2001 21:57:14 +1100
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 <rbtcollins@hotmail.com>
* 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