getting column width in various shells

John Van Ostrand john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org
Wed Nov 8 15:37:12 UTC 2006


>    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?

-- 
John Van Ostrand
         Net Direct Inc.
 
CTO, co-CEO
564 Weber St. N. Unit 12
   Waterloo, ON N2L 5C6 
 map 
john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org
        Ph: 519-883-1172
 ext.5102
Linux Solutions / IBM
Hardware
        Fx: 519-883-8533
 

--
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