The following forum message was posted by crsn at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4731099:
I'm writing an ncurses application using pydev under linux.
When I try to run the program, the eclipse console says
[code] self.stdscr = curses.initscr()
File "/usr/lib/python2.6/curses/__init__.py", line 33, in initscr
_curses.error: setupterm: could not find terminal[/code]
I suppose the problem is clearly that (eclipse?) cannot find a right terminal
in order to use properly the ncurses.
how can I say to ncurses what terminal to use?
do I haveto change it via the eclipse IDE? how?
the program runs fine outside eclipse
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4731099:
Unfortunately, Eclipse launches the program without allocating a real terminal,
so, ncurses applications aren't really able to be run inside Eclipse (I think
there's an issue already open in Eclipse for that). Not sure it's something
that can be solved in the PyDev side, but still, please create a bug-report
for that (other than that, maybe you could create a shell that spawns a terminal
and then runs your program -- you'd still have it outside of Eclipse, but at
least you can run it with the Eclipse shortcuts).