Menu

#13 Portable key codes

open
nobody
None
5
2011-04-28
2011-04-28
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

  • William McBrine

    William McBrine - 2011-05-02

    Um, could you be more specific?

     
  • Mathäus Mendel

    Mathäus Mendel - 2011-05-04

    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.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.