We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello maintainers,
I'm wondering it since I saw these functions, there already are stdoutIsTTY and stderrIsTTY but lacking stdinIsTTY.
stdoutIsTTY
stderrIsTTY
stdinIsTTY
I'm avoiding this lacking by defining my own one only for now:
stdinIsTTY :: Boolean stdinIsTTY = (unsafeCoerce stdin).isTTY
and this seems working properly like this:
main :: Effect Unit main = logShow stdinIsTTY
❯ spago run [info] Build succeeded. true ❯ echo hi | spago run [info] Build succeeded. false
The text was updated successfully, but these errors were encountered:
Add stdinIsTTY (purescript-node#30)
5e60f67
Add stdinIsTTY (#30) (#31)
5dd9abb
Co-authored-by: Thomas Honeyman <[email protected]>
Successfully merging a pull request may close this issue.
Hello maintainers,
I'm wondering it since I saw these functions, there already are
stdoutIsTTY
andstderrIsTTY
but lackingstdinIsTTY
.I'm avoiding this lacking by defining my own one only for now:
and this seems working properly like this:
The text was updated successfully, but these errors were encountered: