    # File lib/rubygems/user_interaction.rb, line 123
        def choose_from_list(question, list)
          @outs.puts question

          list.each_with_index do |item, index|
            @outs.puts " #{index+1}. #{item}"
          end

          @outs.print "> "
          @outs.flush

          result = @ins.gets

          return nil, nil unless result

          result = result.strip.to_i - 1
          return list[result], result
        end