def ask(question)
    return nil if not tty?

    @outs.print(question + "  ")
    @outs.flush

    result = @ins.gets
    result.chomp! if result
    result
  end
#
Ask a question.  Returns an answer if connected to a tty, nil otherwise.