getting column width in various shells

Madison Kelly linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Wed Nov 8 20:21:41 UTC 2006


Lennart Sorensen wrote:
> On Wed, Nov 08, 2006 at 08:14:45PM +0000, john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org wrote:
>> Tput cols does give proper values even if the user changes window size. It seems pretty safe. 
>>
>> Sent from my BlackBerry device on the Rogers Wireless Network  
> 
> How often is the program going to ask about the size of the screen?

Only once before printing. It's for simple line-wrapping of output. I am 
not worried about reformatting after the print hits the screen.

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