initial curses stuff. this commit is known broken.