From: Guillaume Marcais Date: 2006-04-09T04:33:10+09:00 Subject: Re: Console width? I don't know what your application is. In all cases when I needed to modify the last line of output, I would send a line feed (\r) and rewrite completely. It seems to always be simpler than doing tricky calculation on how many character to go back. Something like: $stdout.sync = true 10.times { |i| print("\ri=%2d!!!" % i); sleep(1); } puts For anything more complicated, curses should be it, although I have no experience in this area. Guillaume. Le 8 avr. 06, � 12:54, Alex Barrett a �crit : > 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/. > >