[issue15785] curses.get_wch() returns keypad codes incorrectly

STINNER Victor report at bugs.python.org
Wed Aug 29 00:18:04 CEST 2012


STINNER Victor added the comment:

New patch fixing the issue with a better API: window.get_wch()->int or str depending on the key (int for key codes, str for other keys).

Oh, I realized that test_curses does also fail on my laptop without the patch. My laptop is running Fedora 11 which uses libncurses 5.7. This version is old and has known bugs. So the "unget_wch" issue is maybe unrelated.

----------
Added file: http://bugs.python.org/file27038/curses_get_wch-2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15785>
_______________________________________


More information about the Python-bugs-list mailing list