2009-10-15 38 views
0

我为vim编写了一个使用curses库的小python脚本。 当我尝试调用函数诅咒抱怨:Vim,Python和curses

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

不知道如何解决这个

编辑:GVIM抱怨Vim的正常工作

回答

7

我不是很肯定的上下文,但“GVIM抱怨Vim工作正常”非常有见识:curses在控制台中使用,gvim在X窗口中运行,因此没有控制台。