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

Switching out atty? #228

Closed
Porges opened this issue Dec 20, 2022 · 6 comments
Closed

Switching out atty? #228

Porges opened this issue Dec 20, 2022 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Porges
Copy link
Contributor

Porges commented Dec 20, 2022

Would you accept a PR to switch out atty for something else? This would also affect supports_unicode and supports_hyperlinks.

There’s been an audit failure on atty for a while now which requires explicit suppression if you’re using something like cargo-audit or cargo-deny.

As to replacements, is-terminal seems to have been picked up by several projects such as clap.

@Porges Porges changed the title Switching out atty Switching out atty? Dec 20, 2022
@zkat
Copy link
Owner

zkat commented Dec 20, 2022

yes, I've already accepted a PR to supports-color to make this change, so I'm happy to take PRs for the other three.

@zkat zkat added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Dec 20, 2022
@Porges
Copy link
Contributor Author

Porges commented Dec 20, 2022

Opened:

I also put a comment on the supports-color PR to suggest removing the indirection through the Stream type and instead expose the function for any IsTerminal to make it more generally useful. If you think that's a good idea I can open a PR to do that.

@gavrilikhin-d
Copy link
Contributor

Should this issue be closed?

@Porges
Copy link
Contributor Author

Porges commented Jun 7, 2023

std::io::IsTerminal landed in 1.70.0, so we could now also drop the is-terminal dependencies.

I've opened (apparently consistency is not my strong suit):

The API could now also be broadened to accept any std::io::IsTerminal instead of the Stdout/Stderr enum. This should probably be a different issue.

@zkat
Copy link
Owner

zkat commented Jun 29, 2023

Thanks for these PRs. I'm gonna take care of this sometime soon, since it involves a coordinated release of several semver-major versions, and also is gonna bump miette's MSRV to 1.70.0, which I'm not sure I want to do right now?

@Nahor
Copy link
Contributor

Nahor commented Feb 16, 2024

This can be closed now (fixed in e5c7ae4)

@Porges Porges closed this as completed Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants