Improvements to ncurses stuff.