Fix ncurses pagination bugs.