getting column width in various shells
Madison Kelly
linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Wed Nov 8 12:57:14 UTC 2006
Hi all,
I am trying to add line-wrapping to my program and to this end I am
trying to figure out the different ways of getting the current number of
columns from the different shells. I am hoping you guys who use shells
other than bash or sh might be able to help me build a list.
For 'bash' and 'sh', I know this works:
$ echo $COLUMNS
For 'csh' and 'tsch', I *thought* it was the same, and the man page
seems to agree, but I only get an error:
> echo $COLUMNS
COLUMNS: Undefined variable.
Beyond these four, I am not even really sure what shells are in common
use, so feedback on that would be helpful, too.
Thanks!
Madi
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list