ncurses: more cleanup