ui/ncurses: Improve scrolling behaviour