winsize adds 2 methods: winsize and winsize= to IO that allows you to control the size of a tty window. Mainly used with pty to deal with executables that word wrap (i.e. top). *If you are using ruby 1.9.3 this gem is not needed. require "io/console" provides the same functionality.*
Gemfile gem 'winsize', '~> 2.0.0'
install gem install winsize