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

Expose LastOutput to enable scrolling output #135

Merged
merged 1 commit into from Apr 22, 2022

Conversation

kylecarbs
Copy link
Contributor

This allows printing output above the spinner. In our use-case,
we have logs streaming above the spinner using:

fmt.Fprintf(wtr, "\r%s\n")

By exposing LastOutput, we can immediately print the spinner again.
Without this field, flashing occurs due to the spinner delay.

This allows printing output above the spinner. In our use-case,
we have logs streaming above the spinner using:

`fmt.Fprintf(wtr, "\r%s\n")`

By exposing LastOutput, we can immediately print the spinner again.
Without this field, flashing occurs due to the spinner delay.
@briandowns
Copy link
Owner

Thank you so much for this contribution! I'll get to testing in a day or so and will get this merged.

@briandowns briandowns merged commit 553002f into briandowns:master Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants