def configure(options = {})
      dimentions = options.values_at(:height, :width).collect(&:to_i)
      @input.winsize = dimentions unless dimentions.any?(&:zero?)
    end
def configure(options = {})
      dimentions = options.values_at(:height, :width).collect(&:to_i)
      @input.winsize = dimentions unless dimentions.any?(&:zero?)
    end
Configure the psuedo terminal properties.

 Options:
   :width  The width of the terminal in number of columns.
   :height The height of the terminal in number of rows.

 If any of the width or height is missing (or zero), the termininal size
 won't be set.