VOGONS


DOSBox debugger problem

Topic actions

First post, by etil

User metadata
Rank Newbie
Rank
Newbie

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).

Reply 1 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Try the 0.65 sources, imo the debugger is better there anyways.

Reply 2 of 6, by etil

User metadata
Rank Newbie
Rank
Newbie

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.

Reply 3 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

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).

Reply 4 of 6, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie

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...

Reply 5 of 6, by etil

User metadata
Rank Newbie
Rank
Newbie

A very simple patch.

Replaces the pdcurses specific Alt-<key> keycodes with ESC character and the <key> character itself.

Reply 6 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Thanks for posting it!