[New-bugs-announce] [issue9667] NetBSD curses KEY_* constants
Bill Green
report at bugs.python.org
Tue Aug 24 12:15:14 CEST 2010
New submission from Bill Green <bill at supposedly.org>:
_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?
----------
components: Library (Lib)
messages: 114774
nosy: bgreen
priority: normal
severity: normal
status: open
title: NetBSD curses KEY_* constants
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9667>
_______________________________________
More information about the New-bugs-announce
mailing list