bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65541: New fancy progress bars writing new lines instead of updating


From: elaexuotee
Subject: bug#65541: New fancy progress bars writing new lines instead of updating original
Date: Sat, 26 Aug 2023 10:25:53 +0900
User-agent: mblaze/1.2

The new pretty progress bars are quite nice. One issue I am ecountering,
however, is demonstrated in the snippet below:

    オブジェクトにインデックスを付けています  71% 
▕████████████████████████████████████████████████████████████████████████████████████████████▉
    オブジェクトにインデックスを付けています  74% 
▕█████████████████████████████████████████████████████████████████████████████████████████████████▏
    オブジェクトにインデックスを付けています  77% 
▕█████████████████████████████████████████████████████████████████████████████████████████████████████▍
    オブジェクトにインデックスを付けています  81% 
▕█████████████████████████████████████████████████████████████████████████████████████████████████████████▋
    オブジェクトにインデックスを付けています  84% 
▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████▊
    オブジェクトにインデックスを付けています  87% 
▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████████
    オブジェクトにインデックスを付けています  90% 
▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████████

When preceeding text contains double-width characters, progress bar updates end
up printing new lines instead of overwriting the original. When the preceeding
text is ascii, such as for substitute downloads, then the bars work
beautifully.

My guess is that the width-calculation simply forgets to account for possible
double-width charaters in the text snippet.

Anyone else seeing this?

Cheers,
B. Wilson





reply via email to

[Prev in Thread] Current Thread [Next in Thread]