rudimentary input engine using curses.