Skip to content

Allow to check a io.Reader instead of raw file descriptor #85

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

Open
cardil opened this issue Mar 15, 2023 · 2 comments
Open

Allow to check a io.Reader instead of raw file descriptor #85

cardil opened this issue Mar 15, 2023 · 2 comments

Comments

@cardil
Copy link

cardil commented Mar 15, 2023

The lib allows checking TTY versus a raw file descriptor. It would be convenient to allow checking of a given io.Reader instead, as pointed out by @dolmen in #80 (comment)

@dolmen
Copy link
Contributor

dolmen commented Mar 23, 2023

I'm now fully against this feature as I explained here: #80 (comment)

This is just a convenience API and it is still possible to make this feature available in another package using go-isatty as backend.

@smokersaim
Copy link

smokersaim commented May 13, 2025

I ran into this limitation too and ended up with probe, which supports TTY checks from io.Reader / io.Writer. Might be useful depending on your use case. Happy to discuss if there’s interest.

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

No branches or pull requests

3 participants