We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3894cf commit 5e60f67Copy full SHA for 5e60f67
src/Node/Process.purs
@@ -20,6 +20,7 @@ module Node.Process
20
, stdin
21
, stdout
22
, stderr
23
+ , stdinIsTTY
24
, stdoutIsTTY
25
, stderrIsTTY
26
, version
@@ -151,6 +152,11 @@ stdout = process.stdout
151
152
stderr :: Writable ()
153
stderr = process.stderr
154
155
+-- | Check whether the standard input stream appears to be attached to a TTY.
156
+-- | It is a good idea to check this before processing the input data from stdin.
157
+stdinIsTTY :: Boolean
158
+stdinIsTTY = process.stdin.isTTY
159
+
160
-- | Check whether the standard output stream appears to be attached to a TTY.
161
-- | It is a good idea to check this before printing ANSI codes to stdout
162
-- | (e.g. for coloured text in the terminal).
0 commit comments