def configure(options = {})
      dimentions = options.values_at(:height, :width).collect(&:to_i)
      begin
        @input.winsize = dimentions
      rescue TypeError
        @input.winsize = [*dimentions, 0, 0]
      end if dimentions.none?(&:zero?)
    end
def configure(options = {})
      dimentions = options.values_at(:height, :width).collect(&:to_i)
      begin
        @input.winsize = dimentions
      rescue TypeError
        @input.winsize = [*dimentions, 0, 0]
      end if dimentions.none?(&: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 terminal size
 won't be set.