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

Olaf Conradi oohlaf at gmail.com
Sun Apr 30 21:59:05 BST 2006


On 30/04/06, John Arbash Meinel <john at arbash-meinel.com> wrote:
> Alexander Belchenko 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().
>
> This seems reasonable to me. I wonder if we don't want to use the same
> functionality for cygwin. Though I also wonder if the other stdio patch
> works there.

Didn't we want to substract one from the terminal width?

 -Olaf




More information about the bazaar mailing list