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

Thomas Dickey dickey at his.com
Fri Aug 21 21:53:17 CEST 2009


On Fri, 21 Aug 2009, Iñigo Serna wrote:

> 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,

no problem (report bugs)

> Iñigo
>

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


More information about the Python-list mailing list