new status output

Alexander Belchenko bialix at ukr.net
Wed Oct 19 11:10:07 BST 2005


Martin Pool wrote:
> On 18/10/05, Aaron Bentley
>>2. Can we have pervasive console-width handling?  Right now I'm just
>>using 79 columns for that output method.  But it would also be nice to
>>word-wrap our errors
> 
> Yes, that'd be good.  There is some text-wrapping code in the Python library.
> 
> To accurately determine the terminal width on unix it seems we have to
> use curses or something similar -- $COLUMNS doesn't seem to be
> normally set (at least on Ubuntu).

BTW: lately I write the little recipe for determining size of console on 
Windows. For this operation ctypes package should be installed but this 
is not big problem. At least this can be mentioned in README for Windows 
users.

It also can be easily implement as C-extension for python, but I don't 
have required MSVC 7.1 for compiling it. I may send bare C-code if 
someone wish to create C-extension for python2.4 on win32.

Alexander.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: winconsole.py
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20051019/0547d4d6/attachment.diff 


More information about the bazaar mailing list