Move more things about stdscr in lib-ui.