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

Curses alternative for windows [closed]

I’m happy to report that there’s now a Windows build of Curses available as an extension for Python on Windows, from here. (I didn’t write it, and I don’t know who maintains it.) You can run the installer, and import curses to get curses running. (Verified on 64-bit Windows 7 and Windows 8.) @ArtOfWarfare points … Read more

What is needed for curses in Python 3.4 on Windows7?

You can use curses cross-platform (Windows, MacOS, GNU/Linux) if you install manually for Windows or like other package in others. Install wheel package. If you need more info about wheel click here. Go to this repository. Download a package with your python version, in example for python 3.4: curses-2.2-cp34-none-win_amd64.whl Install it (this command if for … Read more

Workaround for ncurses multi-thread read and write

Without the thread-support, you’re out of luck for using curses functions in more than one thread. That’s because most of the curses calls use static or global data. The getch function for instance calls refresh which can update the whole screen—using the global pointers curscr and stdscr. The difference in the thread-support configuration is that … Read more

Canonical vs. non-canonical terminal input

For canonical input — think shell; actually, think good old-fashioned Bourne shell, since Bash and relatives have command-line editing. You type a line of input; if you make a mistake, you use the erase character (default is Backspace, usually; sometimes Delete) to erase the previous character. If you mess up completely, you can cancel the … Read more