ui/ncurses: Update cui_run_cmd() to pass display to command