New submission from Bill Green <b...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9667>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to