curses KEY_* constants

Bill Green bill at
Tue Aug 24 10:34:01 CEST 2010


According to the documentation for the curses module, there are a number of
constants defined for various special keys (such as KEY_DOWN, KEY_UP,
KEY_BACKSPACE, etc.).  However, these do not exist on my system (NetBSD 5).

Looking at _cursesmodule.c, the code that sets up the KEY_ variables is #defined
out on NetBSD (in initcurses() at line 2860 for Python 2.7).  Does anyone know
why this is so?


More information about the Python-list mailing list