On Mar 5, 2007, at 10:35 AM, Greg Hurrell wrote: > On 5 mar, 18:34, James Edward Gray II <j... / grayproductions.net> > 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 I use highline in a bunch of internal projects for CLI gui's, it totally rocks(thx JEGII&Gregory!). But I want these to be standalone gems with no dependencies so I embed highline in my own gems. Its only a few files and easy to embed so it makes sense to ship it with the gem that needs it. Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez / engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)