-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate rendering of extra empty lines #97
Comments
3e6b9bf didn't fix any particular problem I knew of and caused a new problem - that progressbars that are shorter than previous are not be cleared so you get things like but now I see you have a particular problem that you were trying to fix. I think the fix for that problem you are having is related to the calculation of the window width used with the Also, what system are you seeing this (terminal, shell, OS, etc.)? |
I found that the default progress bar symbol width is uncontrollable. Apart from replacing it, how to solve it? |
See my previous comment |
I haven't found a way to calculate the width of When I set it like this, the performance is normal: progressbar.OptionSetTheme(progressbar.Theme{
Saucer: "=",
SaucerPadding: " ",
BarStart: "|",
BarEnd: "|",
SaucerHead: ">",
}) |
I also encountered this problem on macOS with version v3.8.3 |
macOS, v3.8.3, same problem |
macOS, v3.13.0, same problem |
@schollz If that is correct, it seems to me that you probably have a terminal that is not working correctly because the current implementation keeps increasing Line 990 in 3d12297
I think that filling in the terminal with white space for the width of the terminal would solve all problems. I created a pull request that deals with this issue. |
I found an error in the correction, so I withdrew the pull request(#168). I made a fix to keep the When I set the This seems to be caused by the current implementation counting the number of runes. Currently, since the library update for mattn/go-runewidth, which we use for calculating the width of runes, is lagging behind, it seems that the issue can be resolved by replacing it with rivo/uniseg that it internally uses. |
When revert 3e6b9bf
Each time the progress bar is rendered, an empty line is added.
The text was updated successfully, but these errors were encountered: