truth5678 wrote:I presume this limit is "nearby" to the function "BIOS_AddKeyToBuffer", but I've yet to find the exact cause of the 15 character limit.
Maybe because the BIOS keyboard buffer can hold a maximum of 16 keystrokes?

truth5678 wrote:I presume this limit is "nearby" to the function "BIOS_AddKeyToBuffer", but I've yet to find the exact cause of the 15 character limit.
truth5678 wrote:Great! For the linux diff tool, please try this: diff -rupN dosbox-ORIG/ dosbox-CHANGED/ > patch.diff. This will enforce the patch format where running the diff tool. There may be a lot of extra lines, but this is at least a guide to creating a patch file, and even others can parse for the relevant code if needed.
I haven't looked at clipboard support, but I wonder if SDL has that capability? I can look into it further, if you like. I'm currently looking forward to testing the lfn patch.
Edit: verified that SDL 1.2 doesn't have clipboard support, so you must have used windows api.
http://www.blitzbasic.com/Community/pos ... pic=101998 (I think this has an OSX code example)
It may be worthwhile to experiment with Gnome first (or another window manager with Fedora 20): https://developer.gnome.org/gtk2/stable ... oards.html. It may be simpler to port your windows clipboard code that way, and then expand it as people request? (The win32 dosbox binary should run under wine in the case a linux user requires an immediate solution to clipboard access.)
Dominus wrote:Yes, definitely please, no gtk(though I'm not a dosbox dev).
And please use the different diff options, I'm not able to apply your patches except manually and that is not fun in regard to your long patches
While we tried to apply your patch Emendelson mentioned you took over the right click for your copy/paste function. Maybe consider using a modifier along (e.g. Alt+right click) so to not clash with games that use the right click.
truth5678 wrote:An alternative is a dosbox.conf setting for clipboard = on/off.
emendelson wrote:Hello Wengier,
Thank you for all your work on this excellent patch. One question:
Could you make the Paste function mappable to a keystroke, so that we could use the mapper (or patch the source code) so that (for example) Ctrl-Alt-V would paste to the cursor location, without using the mouse?
I tried to do that with your source code, but I don't know enough to make it work.
Thank you again for this!
diff -rupN dosbox-SVN//configure.ac dosbox-CLIP//configure.ac
--- dosbox-SVN//configure.ac 2014-02-10 21:48:18 -0500
+++ dosbox-CLIP//configure.ac 2014-10-25 17:11:07 -0400
@@ -219,6 +219,21 @@ AC_ARG_ENABLE(debug,AC_HELP_STRING([--en
fi
],)
+AH_TEMPLATE(C_CLIPBOARD,[Define to 1 to enable CLIPBOARD, requires libpdcurses])
+AC_ARG_ENABLE(clipboard,AC_HELP_STRING([--enable-clipboard],[Enable clipboard mode]),[
+ AC_CHECK_HEADER(curses.h,have_curses_h=yes,)
+ AC_CHECK_LIB(pdcurses, initscr, have_pdcurses_lib=yes, , )
+
+ if test x$enable_clipboard = xno; then
+ AC_MSG_RESULT([Clipboard not enabled])
+ elif test x$have_pdcurses_lib = xyes -a x$have_curses_h = xyes ; then
+ LIBS="$LIBS -lpdcurses"
+ AC_DEFINE(C_CLIPBOARD,1)
+ else
+ AC_MSG_ERROR([Can't find pdcurses, which is required for clipboard mode])
+ fi
+],)
+
emendelson wrote:An F-key assignment would be ideal. In an older project (based on someone else's code which is very hard to maintain and not nearly as good as yours), I use Ctrl-Alt-F4, but anything would be good, as long as it can be changed in the mapper or source code.
Thank you again!
emendelson wrote:Terrific, Wengier! Thank you again!
If you would be willing to post all the changed (and new) files, that would be very, very helpful, but I know we keep asking you for things... Thank you!
Users browsing this forum: No registered users and 1 guest