VOGONS

Common searches


Search results for copy paste

Display options

Re: Mouse copy/paste support

Under OS X, I built curses (in the sdl1 folder) with #define HAVE_CLIPBOARD 1, and the clipboard test fails - nothing goes in or out. The curses.h in the PDCurses folder is of course the pdcurses version. I found the ncurses version in usr/include/curses.h but haven't tried replacing it with the …

Re: Mouse copy/paste support

in DOSBox Patches
When I first run the clipboard test (in other words, when I launch testcurs and immediately run the clipboard test it reports "there was no text in the clipboard" though in fact I had placed text into the OS X clipboard. Then in the next screen it puts it says it will place the following string, …

Re: Mouse copy/paste support

And this worked without changes for you? No source changes beyond those already attached are really needed (the preprocessor directive need to be enabled of course). The real change I made is the addition of the path to the libpdcurses.a file (generated in the sdl1 directory) to the compiler (g++) …

Re: Mouse copy/paste support

I'm stumpedey stumped. I cannot make it to work... I have no idea what is failing me. Especially since the text selecting is failing me in the first part already and that shouldn't. I made sure that C_Clipboard is defined...

Re: Mouse copy/paste support

hmmm, still not working. Followed the above as close as I could and used the above changed files. AFAICT the only difference was that I needed to add "--disable-video-x11 --without-x" to SDL's configure (as OS X no longer ships with X11 and the Xquartz download didn't exactly work for building SDL …

Re: Mouse copy/paste support

in DOSBox Patches
It should be possible to build pdcurses, instead of pdcurses-sdl, against the X11 library in OSX. This would presumably allow the additional functionality with minimal patch modification. In addition, I believe SDL2 has system clipboard functionality, so that avenue will open the additional …

Re: Mouse copy/paste support

On OS X there is no transparent other clipboard, but obviously the X11 clipboard is separate from the system clipboard (when you install xquartz you can see references about this in the preferences). But the x11 clipboard and whatever pdcurses-sdl is using is also not the same from simple tests. …

Re: Mouse copy/paste support

in DOSBox Patches
The SDL examples above should not require X11, and the SDL1 example above has code to access the system clipboard for OSX. In fact, that code provides a guide to modify the existing patch. I presume SDL2 can target xquartz. However, it requires further development on the OSX platform. It doesn't …

Re: Mouse copy/paste support

If I'd be better in actually coding I'd gladly help wrangler with it. As it stands now I'm good with getting stuff to compile (when I'm not dumb enough to not read which button to press :)) but not much help with any coding. AFAICT pdcurses is no longer developed for years now. Getting upstream to …

Re: Mouse copy/paste support

Thanks for your research. The most obvious problem for the code above (which I found it too) is that the code is written in Objective-C (which I have no experience with) instead of C/C++ (which is the programming language used in the DOSBox source code). I wonder if there is a C/C++ version of code …

Re: Mouse copy/paste support

in DOSBox Patches
I didn't know that. It explains why some cross-platform libraries excluded the OS. :) Perhaps this example is a poor choice for a C/C++ implementation: http://www.alecjacobson.com/weblog/?p=2376. Edit: alternatively, could someone try to compile the SDL library in OSX with the SDL_Clipboard patch? …

Re: Mouse copy/paste support

in DOSBox Patches
I entirely agree. I updated the above post with a suggestion to compile the SDL library + SDL_Clipboard in OSX. It would require a custom SDL build which is far from an ideal approach. Given that the OSX system clipboard is mainly accessible by objective-C, and dosbox is in C++, it seems that the …

Page 8 of 85