professa has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to get the width of console window (the one which was used to start my perl script) so that I know how long my output lines are allowed to be at maximum without introducing "forced" linebreaks by the console itself.
Say, the console window has a width of 100 characters, then I would like to know that so I can output lines no longer than, for example, 99 characters to prevent those unintended line-wrapping...
I thought there must be something in %ENV, but no go, I didn't find anything. Any ideas? I don't get any further here.
Thanks in advance, Michael
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get the width of a console window?
by pbeckingham (Parson) on Jun 07, 2004 at 13:39 UTC | |
|
Re: How to get the width of a console window?
by halley (Prior) on Jun 07, 2004 at 13:41 UTC | |
|
Re: How to get the width of a console window?
by zentara (Cardinal) on Jun 07, 2004 at 15:25 UTC | |
by bmcatt (Friar) on Jun 07, 2004 at 16:33 UTC | |
|
Re: How to get the width of a console window?
by meetraz (Hermit) on Jun 07, 2004 at 19:37 UTC | |
|
Re: How to get the width of a console window?
by ambrus (Abbot) on Jun 07, 2004 at 20:03 UTC | |
|
Re: How to get the width of a console window?
by Zaxo (Archbishop) on Jun 07, 2004 at 23:50 UTC |