[PATCH] obtain terminal_width via curses

Matthew Hannigan mlh at zip.com.au
Wed Apr 26 02:43:51 BST 2006


On Wed, Apr 26, 2006 at 10:45:57AM +1000, Martin Pool wrote:
> 
> Thanks for the patch.  There is an existing bug open for this,
> https://launchpad.net/products/bzr/+bug/3507
> 
> That bug suggests using TIOCGWINSZ to do this, rather than curses,  
> which is at least conceptually more lightweight.  Are there any  
> particular advantages to using curses?

Strictly speaking, there may be a environment variable 'COLUMNS'
that curses may take note of, but I wouldn't worry about
that too much.

Matt





More information about the bazaar mailing list