Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#13 Portable key codes

open
nobody
None
5
2011-04-28
2011-04-28
Mathäus Mendel
No

Actually, is know that at some platforms the character codes returned by wgetch() may differ from the ones defined in the curses.h header.

I would like to suggest to add the different keycodes to the supported platforms.

Discussion

  • Um, could you be more specific?

     
  • For example, the KEY_ENTER definition on Pdcurses is 0x157. But sadly it isn't the key code for the Enter keyboard key on Windows platforms, which is actually 0x0D.

    There is more key codes which doesn't match right too.