First post, by emendelson
Here is a patch that adds (Windows-only) clipboard pasting to current SVN (r3981, updated today). The code is NOT my work; I wouldn't know how to begin writing something like this. All I did was finally figure out how to make a patch that applies this feature to SVN. Everything in it is taken from the code for dbDOS 3.0, a commercial offshoot of DOSBox, written by a contract programmer whose name seems to be Olivier Hamel. I posted full source files a couple of years ago, but I didn't know how to create a simple patch back then.
The patch only affects sdlmain.cpp. As you can see from the code, when applied to current SVN, it enables the keystroke Ctrl-Alt-F4 to paste the contents of the Windows clipboard into the DOSBox window; that keystroke is of course easy to change. This is not limited to pasting 256 characters, as in Wengier Wu's clipboard implementation, but it does NOT support copying from the DOSBox window, as Wengier Wu's implementation does. I haven't tried combining Wengier's copy function with this paste function, but presumably they could work together.
I hope I've put together the diff correctly. I don't actually know what I'm doing, but the code certainly works and I hope the diff is useful.