ncurses getch & unicode (was: decoding keyboard input when using curses)

Iñigo Serna inigoserna at gmail.com
Fri Aug 21 07:58:38 EDT 2009


2009/8/21 Thomas Dickey <dickey at his.com>:
> On Aug 20, 6:12 pm, Iñigo Serna <inigose... at gmail.com> wrote:
>>         c = win.getch()
>
> You're using "getch", not "get_wch" (Python's ncurses binding may/may
> not have the latter).
> curses getch returns 8-bit values, get_wch would return wider values.

you are right, ncurses binding does not have get_wch, only getch, and
this last is the only one called in ncurses library bindings.


Anyway, I've written a patch to include the get_wch method in the bindings.
See http://bugs.python.org/issue6755


Thanks for the clarification,
Iñigo



More information about the Python-list mailing list