def ask(prompt = '(y/n)')
      command_line.set_prompt prompt
      command_line.refresh
      while (c = Curses.getch)
        next unless [?N, ?Y, ?n, ?y, 3, 27] .include? c  # N, Y, n, y, ^c, esc
        command_line.clear
        command_line.noutrefresh
        break (c == 'y') || (c == 'Y')
      end
    end
def ask(prompt = '(y/n)')
      command_line.set_prompt prompt
      command_line.refresh
      while (c = Curses.getch)
        next unless [?N, ?Y, ?n, ?y, 3, 27] .include? c  # N, Y, n, y, ^c, esc
        command_line.clear
        command_line.noutrefresh
        break (c == 'y') || (c == 'Y')
      end
    end
Let the user answer y or n.

 ==== Parameters
 * +prompt+ - Prompt message