ui/ncurses/text-screen: trim long lines