in reply to How to get the width of a console window?
There is something in %ENV, $ENV{'COLUMNS'}, if you export COLUMNS in your environment.
After Compline,Zaxo