Differences between revisions 1 and 2
Revision 1 as of 2011-03-18 02:02:44
Size: 976
Editor: andelf
Comment:
Revision 2 as of 2011-03-18 02:05:12
Size: 1123
Editor: andelf
Comment:
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:

这里提供 for py2.7 的包 32 位:

[[attachment:_curses-2.2.win32-py2.7.exe]]

代码中注意,对中文的宽度计算是错的。

Curses 库

默认安装中是不支持 win32 的,提示没有 _curses 模块。

http://www.lfd.uci.edu/~gohlke/pythonlibs/ 可以找到适用的包。但是不支持中文。

解决方法。下载 pdcurses 库,编译(加入wchar, force-utf-8支持),然后从上面网站下载源码编译。

这里提供 for py2.7 的包 32 位:

_curses-2.2.win32-py2.7.exe

代码中注意,对中文的宽度计算是错的。

Curses (last edited 2011-03-18 02:05:12 by andelf)