ui/ncurses: Abstract text-screen code from sysinfo screen