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

Enable ansi-parsing feature for console #316

Merged
merged 1 commit into from Oct 25, 2021
Merged

Enable ansi-parsing feature for console #316

merged 1 commit into from Oct 25, 2021

Conversation

redzic
Copy link
Contributor

@redzic redzic commented Oct 18, 2021

Fixes #300.

As it turns out, console's strip_ansi_codes function is a no-op unless the ansi-parsing feature is enabled (https://docs.rs/console/0.15.0/src/console/utils.rs.html#10-16).

@djc
Copy link
Collaborator

djc commented Oct 18, 2021

Would it be feasible to add a test for this?

@redzic
Copy link
Contributor Author

redzic commented Oct 19, 2021

It's feasible, but as far as I'm aware there would need to be a way to have a version of ProgressDrawTarget that can return an arbitrary width for testing, unless there is some other way to do it.

@djc djc merged commit 2e8d30a into console-rs:main Oct 25, 2021
@djc
Copy link
Collaborator

djc commented Oct 25, 2021

Alright, let's skip it for now. Thanks!

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.

If using colors and bold, wide_bar doesn't visually fill up the entire terminal width
2 participants