[PATCH] obtain terminal_width via curses

Matthew Hannigan mlh at zip.com.au
Wed Apr 26 13:01:25 BST 2006

On Wed, Apr 26, 2006 at 09:50:06PM +1000, Martin Pool wrote:
> Also (iirc) some terminal emulators will assume the lines ought to  
> wrap together if text extends to column 80.


And thinking over my COLUMNS remark, it should be very
easy to support. 

So ...

	width = (ioctl() or getenv(COLUMNS) or 80) - 1


More information about the bazaar mailing list