[PATCH] obtain terminal_width via curses

David Allouche david at allouche.net
Tue Apr 25 12:22:16 BST 2006


On Mon, 2006-04-24 at 18:56 -0400, 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?

bzr is slightly broken. When the EMACS environment variable is set
(within an Emacs shell), the COLUMNS width should be substracted by one.

But I think this breakage is pre-existent to that particular patch.

Oh BTW, I noticed that I no longer need to force TERM=xterm to get the
progress bar in a emacs shell. Nice. People who did that will be
bothered by some garbage generated by curses.initscr(). But it's their
fault for lying.
-- 
                                                            -- ddaa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060425/49fb3bcf/attachment.pgp 


More information about the bazaar mailing list