[ANNOUNCEMENT] xwinclip Test 01 (Cygwin/XFree86 and Windowsclipboard integration)

Harold Hunt huntharo@msu.edu
Mon Sep 3 21:00:00 GMT 2001


I couldn't find any documentation on /dev/clipboard and I don't understand
the mechanism.  I looked at the source code, but I still don't understand
what is going on.

Here's what I mean:

1) When reading from the Windows clipboard directly I list the type of
formats available (pixmap, text, file, etc.) for the data with
EnumClipboardFormats, and I select the format I want by passing it to
GetClipboardData.  I have no idea how to get the format of the data waiting
on /dev/clipboard.

2) When writing to the Windows clipboard, I specify the format of the data
being written by passing the format type to SetClipboardData.  Once again, I
have no idea how to specify the format of data being written to

3) I have no idea when conversions from UNIX to DOS text occur with

I guess, in short, it is easier, so far, for me to just read the MSDN
Library and use the clipboard API functions directly.  I find that I rarely
get work done when I don't have a pile of documentation and/or operating
specifications to look at.

However, you know a lot about the Windows clipboard API, so I'd appreciate
any direct or indirect contributions you have to make (including some specs
on how /dev/clipboard works).


> -----Original Message-----
> From: cygwin-xfree-owner@sources.redhat.com
> [ mailto:cygwin-xfree-owner@sources.redhat.com]On Behalf Of Robert
> Collins
> Sent: Monday, September 03, 2001 6:14 PM
> To: Corinna Vinschen
> Cc: Cygwin-Xfree
> Subject: Re: [ANNOUNCEMENT] xwinclip Test 01 (Cygwin/XFree86 and
> Windowsclipboard integration)
> On 03 Sep 2001 16:42:08 +0200, Corinna Vinschen wrote:
> > On Mon, Sep 03, 2001 at 04:03:40PM +0200, Ralf Habacker wrote:
> > > > >
> > > > >
> > > One point I think has to be fixed: The unix newlines should
> be converted to dos
> > > newlines
> > > because some editors (I have tested notepad and ultraedit on
> w2k) can't handle
> > > unix linefeeds.
> >
> > Gack! That would hit people which are using Cygwin tools on binmode
> > mounts. I disagree to that suggestion. At least notepad is not an editor
> > but just a text control w/o noticeable functionality. I don't know
> > ultraedit, though.
> >
> /dev/clipboard does translation - according to the mode the file is
> opened in. That seemed to work very well. Harold - did you work
> from/with /dev/clipboard?
> Rob

More information about the Cygwin-xfree mailing list