First post, by etil
The ALT+D/E/S/X/B keys do not work in Windows XP.
I've compiled DOSBox with debug from cvs using mingw, gcc-g++-3.4.2, pdc28_ming_w32 (pre-compiled).
The ALT+D/E/S/X/B keys do not work in Windows XP.
I've compiled DOSBox with debug from cvs using mingw, gcc-g++-3.4.2, pdc28_ming_w32 (pre-compiled).
Try the 0.65 sources, imo the debugger is better there anyways.
Thanks for the answer.
I found meanwhile solution. DOSBox uses escape sequences for ALT+D/E/S/X/B keys, pdcurses use key codes > 255. Modified debug.cpp, recompiled, now work.
Hm maybe you could post the changes here or so, maybe it can be
added with a define (as it's said to work under linux).
Actually, if the debugger checks keys with literal string values, it is wrong. Curses apps should rely on curses' keyboard API, no need to decode by hand.
After checking the source and various curses docs, there seems to be a lot of keyboard portability, but no code at all to handle Meta/Alt key combinations. Seems like some kind of workaround is indeed needed. Messy...
A very simple patch.
Replaces the pdcurses specific Alt-<key> keycodes with ESC character and the <key> character itself.
Thanks for posting it!