Is the Python binding for ncurses unicode capable?

B

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 the binding only capable of ASCII?
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

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 the binding only capable of ASCII?

Neither, nor. There isn't any ncurses API for Unicode - just API
for "wide characters" (wchar_t); Python doesn't use this API.
That doesn't mean it's restricted to ASCII. If your terminal
supports UTF-8, you can output UTF-8 just fine to it, using
Python. Just encode the Unicode strings as UTF-8.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top