From: Chris Alfeld Date: 2006-04-09T02:40:30+09:00 Subject: Re: Console width? require 'curses' screen = Curses.init_screen width = screen.maxx height = screen.maxy --- Not quite what you want though because Curses.init_screen will setup the terminal for curses (blank the screen, etc.) On the other hand, if you're interested in the width there's a good chance you want to use curses anyways. On 4/8/06, Alex Barrett wrote: > Is there a variable I can access somewhere to tell me the width of the > command line? > It defaults to 80, which I've put in a global; but it would be better if > it did it by itself. Even better if it updated itself as well. > > -- > Posted via http://www.ruby-forum.com/. > >