[PATCH] obtain terminal_width via curses

Robert Widhopf-Fenk hack at robf.de
Tue Apr 25 21:08:31 BST 2006


On Monday, April 24, 2006 at 18:56:12, Aaron Bentley wrote:
> Robert Widhopf-Fenk wrote:
> > The attached patch modifies "bzr log --log-format line" to
> > use the actual terminal width instead of a hard coded 79.
> 
> That is, on an 80-column terminal, it now uses all 80 columns.  Are
> you convinced this is the right thing to do?

If it causes line wrapping on any terminal then adding a "-
1" should do no harm.  I could not see why it should not use
80 since I did not see any wrapping in Konsole or XTerm.

Robert.




More information about the bazaar mailing list