getting column width in various shells

Madison Kelly linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Wed Nov 8 15:46:50 UTC 2006


John Van Ostrand wrote:
>>    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.
> 
> Does 'tput cols' work for your application?
> 

See, this is why I love TLUG. :) That works perfectly, thank you!

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