Message114774
_cursesmodule.c provides a list of constants, prefixed with KEY_, corresponding to special keys (KEY_DOWN, KEY_LEFT, KEY_BACKSPACE, etc.). A portion of the function init_curses, which implements these, is #defined out on NetBSD (at line 2860 in Python 2.7). PyCurses_KeyName, which seems related (line 2111) is also not compiled on NetBSD. This is presumably because NetBSD's libcurses doesn't provide this functionality.
These functions work when _cursesmodule.c is linked to ncurses rather than BSD curses. Could the preprocessor directives be changed to omit these functions only if the platform is NetBSD AND ncurses is not being used? |
|
Date |
User |
Action |
Args |
2010-08-24 10:15:14 | bgreen | set | recipients:
+ bgreen |
2010-08-24 10:15:14 | bgreen | set | messageid: <1282644914.67.0.328045909398.issue9667@psf.upfronthosting.co.za> |
2010-08-24 10:15:13 | bgreen | link | issue9667 messages |
2010-08-24 10:15:11 | bgreen | create | |
|