Message114774
| 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:14 | bgreen | set | recipients:
+ bgreen |
| 2010年08月24日 10:15:14 | bgreen | set | messageid: <1282644914.67.0.328045909398.issue9667@psf.upfronthosting.co.za> |
| 2010年08月24日 10:15:13 | bgreen | link | issue9667 messages |
| 2010年08月24日 10:15:11 | bgreen | create |
|