Inital commit for curses support.

It's badly written, and won't run. My goal is to get this working, then I can
work on features like viewing comments in the script instead of piping to less