This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bgreen
Recipients bgreen
Date 2010-08-24.10:15:11
SpamBayes Score 2.6912667e-06
Marked as misclassified No
Message-id <1282644914.67.0.328045909398.issue9667@psf.upfronthosting.co.za>
In-reply-to
Content
_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?
History
Date User Action Args
2010-08-24 10:15:14bgreensetrecipients: + bgreen
2010-08-24 10:15:14bgreensetmessageid: <1282644914.67.0.328045909398.issue9667@psf.upfronthosting.co.za>
2010-08-24 10:15:13bgreenlinkissue9667 messages
2010-08-24 10:15:11bgreencreate