Added misc curses code.