[rfc] don't show at all non-flashing progress bar?
Alexander Belchenko
bialix at ukr.net
Tue Jun 27 17:37:27 BST 2006
John A Meinel пишет:
> Alexander Belchenko wrote:
>> I see in recent bzr.dev that progress bar is not flashing on fast
>> operations (I saw Aaron's message about disabling flashing progress bar
>> on first 1-2 seconds).
>>
>> But nevertheless progress bar is exists as string of spaces. And this
>> garbage (of space strings + '\r's) is catched by my editor anyway. Can
>> progress bar don't print anything at all when it try to print spaces?
>>
> It has to print spaces so that it can overwrite the old lines. Also, it
> does:
> [=== ] more text 0/1
>
> So you have to space over to do so.
Yes and no. But if progress bar yet don't print anything? If you run
some fast operation, per example:
bzr init a
cd a
echo spam > spam
bzr add
bzr diff 2>stderr
And then see to stderr file you'll see file full of spaces and '\r' and
no actual progress bar.
So I talk actually about situation when progress bar yet not printed
(first seconds). This is very new improvement introduced by Aaron. And
it great. But incomplete.
--
Alexander
More information about the bazaar
mailing list