Skip to content
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

When using UpdateText with Spinner, the value of the old text is not cleared #655

Open
Chance-fyi opened this issue Apr 19, 2024 · 0 comments · May be fixed by #656
Open

When using UpdateText with Spinner, the value of the old text is not cleared #655

Chance-fyi opened this issue Apr 19, 2024 · 0 comments · May be fixed by #656
Labels
bug Something isn't working

Comments

@Chance-fyi
Copy link

When the set text is too short to cover the original text, display issues may occur.

Example:

spinnerInfo, _ := pterm.DefaultSpinner.Start()
for i := 0; i < 10; i++ {
    spinnerInfo.UpdateText(strings.Repeat(strconv.Itoa(i), (10-i)*10))
    time.Sleep(time.Second)
}
spinnerInfo.Stop()

mnggiflab-video-to-gif

@Chance-fyi Chance-fyi added the bug Something isn't working label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant