split out the terminfo stuff to a pluggable backend
sketch out a hardcoded backend

"make" will now build this, "make CURSES=1" will build the version that
uses ncurses