Closed
Description
Hello maintainers,
I'm wondering it since I saw these functions, there already are stdoutIsTTY
and stderrIsTTY
but lacking 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
Metadata
Metadata
Assignees
Labels
No labels