简体   繁体   English

Vim,Python和curses

[英]Vim, Python and curses

I wrote a small python script for vim that uses the curses library. 我写了一个使用curses库的vim小python脚本。 When I try to call the function curses complains about: 当我尝试调用该函数时,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

Don't know how to solve this 不知道该怎么解决

Edit: GVIM complains Vim works fine 编辑:GVIM抱怨Vim工作正常

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM