[PATCH][win32] obtain terminal width on windows console

Martin Pool mbp at sourcefrog.net
Tue May 9 08:17:14 BST 2006


On 30 Apr 2006, Alexander Belchenko <bialix at ukr.net> wrote:
> Attached patch adds functionality to obtain terminal width on windows 
> console. Module bzrlib.win32console is already here, I'm slightly change 
>  this module to avoid problem with redirecting output and calling 
> function win32console.get_sonsole_size() from osutils.terminal_width().

Thanks, merged.

> === modified file 'a/bzrlib/osutils.py'
> --- a/bzrlib/osutils.py	
> +++ b/bzrlib/osutils.py	
> @@ -37,6 +37,7 @@
>                             PathNotChild,
>                             )
>  from bzrlib.trace import mutter
> +import bzrlib.win32console

Better to put this inside the place it's used, I think - I fixed this.


-- 
Martin




More information about the bazaar mailing list