这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@kothar
Copy link
Contributor

@kothar kothar commented Jan 29, 2016

I'm not sure if this is something you actually want, but I've found it convenient to still be able to output log messages while the uiprogress output is running. At the moment, any 'normal' output gets overwritten by the next refresh of the uilive buffer, and you end up with lots of progress bars left behind due to the output getting out of sync.

By clearing the uilive.Writer lines and resetting the line count, log output (for example) can
be written to the underlying output without being overwritten by the next update from the
buffer.

I've also exposed a similar method on the uiprogress.Progress object, which I will create a PR for.

… output.

By clearing the uilive.Writer lines and resetting the line count, log output (for example) can
be written to the underlying output without being overwritten by the next update from the
buffer.
@gosuri
Copy link
Owner

gosuri commented Feb 2, 2016

LGTM! Reviewing the other PR. Thank you.

gosuri pushed a commit that referenced this pull request Feb 2, 2016
Added bypass writer which allows data to be written to the underlying output
@gosuri gosuri merged commit efb88cc into gosuri:master Feb 2, 2016
@kothar
Copy link
Contributor Author

kothar commented Feb 5, 2016

Great - thanks for the excellent progress indicator!

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.

2 participants