[PATCH][win32] obtain terminal width on windows console
Alexander Belchenko
bialix at ukr.net
Mon May 1 12:36:05 BST 2006
John Arbash Meinel пишет:
> 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.
No, cygwin should use linux-like approach to determine actual terminal
width. Because cygwin simulate linux environment and ideally does not
has link to underlying win32 environment.
At first look, I think.
--
Alexander
More information about the bazaar
mailing list