On Apr 8, 2006, at 6:54 PM, 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.

There is the environment variable COLUMNS. It probably won't exist on  
windows shells:

ENV["COLUMNS"] -> "115"

- Daniel