use ncurses patch for ubuntu