VOGONS


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

Attachments

  • Filename
    alt-key.diff
    File size
    666 Bytes
    Downloads
    220 downloads
    File license
    Fair use/fair dealing exception