TermCurses.py - terminal curses interface class.