From: Greg Hurrell Date: 2007-03-06T03:35:07+09:00 Subject: Re: Getting the size of the terminal in a portable way On 5 mar, 18:34, James Edward Gray II wrote: > > HighLine can do this: > > require "highline/system_extensions.rb" > cols, rows = HighLine::SystemExtensions.terminal_size Thanks, James. That seems to cover just about all platforms, although it introduces another dependency or two (HighLine itself, plus HighLine's own dependencies). I guess that's the way it is though... Cheers, Greg