开发者

Vim, Python and curses

I wrote a small python script for vim that uses the curses library. When I try to call the function curses complains about:

Traceback (most recent call last):
File "<string>", line 9, in &l开发者_C百科t;module>
File "/usr/lib/python2.6/curses/__init__.py", line 33, in initscr
fd=_sys.__stdout__.fileno())
_curses.error: setupterm: could not find terminal

Don't know how to solve this

Edit: GVIM complains Vim works fine


I'm not very sure about the context, but "GVIM complains Vim works fine" is very insightful: curses are used in the console, gvim is run in a X window, thus there's no console.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜