I'm writing an ncurses application using pydev under linux.
When I try to run the program, the eclipse console says
self.stdscr = curses.initscr()
File "/usr/lib/python2.6/curses/__init__.py", line 33, in initscr
fd=_sys.__stdout__.fileno())
_curses.error: setupterm: could not find terminal
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
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm writing an ncurses application using pydev under linux.
When I try to run the program, the eclipse console says
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
thanks!
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).
Cheers,
Fabio