From: pedro mg <_nospam_seti@...> Date: 2007-02-11T08:55:12+09:00 Subject: Re: ENV['COLUMNS'] akbarhome wrote: > On Feb 10, 3:48 pm, pedro mg <_nospam_s...@tquadrado.com> wrote: >> in irb I can have access to ENV['COLUMNS'] for the # of columns in the >> shell, and works fine. >> But inside a script (ruby script.rb), I can't have access to that hash >> key and value. >> I've done a: > > Because when you play with irb, it is clear that you use terminal/ > console so ENV['COLUMNS'] does matter. But when you execute ruby > script, it is not clear whether this ruby script need terminal so > ENV['COLUMNS'] does not matter. sorry but that seems not to be a satisfactory explanation. Just because it is not clear whether the ruby script needs terminal, that features is cutted out ? In this case, i need to know the # of terminal window columns for my terminal client app. So, it matters. Is there any way to get it ? -- pedro mg ruby 1.8.4 (2005-12-24) [i486-linux] ubuntu linux edgy-eft 2.6.17-10-386 #2