curses KEY_* constants

Bill Green bill at supposedly.org
Tue Aug 24 04:34:01 EDT 2010


Hello,

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?

Thanks.



More information about the Python-list mailing list