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

2009-08-21 Thread Thomas Dickey
On Aug 20, 6:12 pm, Iñigo Serna inigose...@gmail.com wrote: Hi again, 2009/8/20 Iñigo Serna inigose...@gmail.com I have the same problem mentioned inhttp://groups.google.com/group/comp.lang.python/browse_thread/thread/...some months ago. Python 2.6 program which usesncursesmodule in

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

2009-08-21 Thread Iñigo Serna
2009/8/21 Thomas Dickey dic...@his.com: On Aug 20, 6:12 pm, Iñigo Serna inigose...@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

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

2009-08-21 Thread Thomas Dickey
On Fri, 21 Aug 2009, Iñigo Serna wrote: 2009/8/21 Thomas Dickey dic...@his.com: On Aug 20, 6:12 pm, Iñigo Serna inigose...@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,

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

2009-08-20 Thread Iñigo Serna
Hello, I have the same problem mentioned in http://groups.google.com/group/comp.lang.python/browse_thread/thread/c70c80cd9bc7bac6?pli=1some months ago. Python 2.6 program which uses ncurses module in a terminal configured to use UTF-8 encoding. When trying to get input from keyboard, a

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

2009-08-20 Thread Iñigo Serna
Hi again, 2009/8/20 Iñigo Serna inigose...@gmail.com I have the same problem mentioned in http://groups.google.com/group/comp.lang.python/browse_thread/thread/c70c80cd9bc7bac6?pli=1 some months ago. Python 2.6 program which uses ncurses module in a terminal configured to use UTF-8