Setupterm could not find terminal, in Python program using curses

You must set enviroment variables TERM and TERMINFO, like this: export TERM=linux export TERMINFO=/etc/terminfo And, if you device have no this dir (/etc/terminfo), make it, and copy terminfo database. For “linux”, and “pcansi” terminals you can download database: http://forum.xda-developers.com/attachment.php?attachmentid=2134052&d=1374459598 http://forum.xda-developers.com/showthread.php?t=552287&page=4

List supported terminal types?

On most systems, you can look for files under /usr/share/terminfo. On some versions of Solaris that may be /usr/lib/terminfo instead. Some system will also have a termcap file, which may be in /etc. /usr/share, or occasionally /usr/share/misc; the terminal names in that are in lines matching ^[^\t].*|, and every name between |s is a valid … Read more