From: Sy Ali Date: 2006-05-21T22:30:04+09:00 Subject: Re: Detecting console dimensions On 5/20/06, Pistos Christou wrote: > Sy Ali wrote: > > Is there a simple way for a ruby script to know the size of the space > > it has to work with Would I be forced to use ncurses or some such? > > Any particular reason not to use curses? Because it would get you what > you want really easily, and you can just drop out of curses mode again > and continue your script... Yes, there are a few reasons why I'm gun-shy. * Learning something new (which distracts from my learning other things) * Adding a dependancy to the script. * Assuming ncurses works, and works the same, everywhere.