curses and unicode

David M. Cooke cookedm+news at physics.mcmaster.ca
Thu Apr 15 17:25:15 EDT 2004


At some point, "A.M. Kuchling" <amk at amk.ca> wrote:

> On Thu, 15 Apr 2004 08:46:55 +0200, 
> 	Gandalf <gandalf at geochemsource.com> wrote:
>> But I do not know how to do this from Python. I only have the curses 
>> module and the addstr method. The addstr method does not support unicode.
>
> There's a separate set of interfaces for wide-character curses support, with
> functions such as addwstr().  Unfortunately the Python curses module doesn't
> support these functions, and they may or may not be available on your
> platform.  (For example, they don't seem to be available in the version of
> ncurses in Debian unstable.)

You want the libncursesw5 library (ncurses compiled with wide
character support). I suppose there's two libraries as
ncurses-with-wide-chars is API but not ABI compatible with
ncurses-w/o-wide-chars. But, no Python interface with wide characters.

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca



More information about the Python-list mailing list