Re: Is the Python binding for ncurses unicode capable?

2006-01-20 Thread bmcnally
Can someone explain what I'm doing wrong? The following code snipet produces an error about addch() expecting an int: u = u'\u2591' s = u.encode("UTF-8") stdscr.addch((y+1), (x+1), s, curses.color_pair(1)) If I try this instead: u = u'\u2591' s = u.encode(

Is the Python binding for ncurses unicode capable?

2006-01-18 Thread bmcnally
I can't tell from the documentation, but I'd like to try and print unicode characters through Python's binding to ncurses. From reading the documentation on the curses module, it doesn't appear that this is possible: http://python.org/doc/2.4.2/lib/module-curses.html Am I missing something, or is