File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ Breaking changes:
8
8
9
9
New features:
10
10
11
+ - Added ` stdinIsTTY ` as the counterpart of ` process.stdin.isTTY ` (#31 by @matoruru )
12
+
11
13
Bugfixes:
12
14
13
15
Other improvements:
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ module Node.Process
20
20
, stdin
21
21
, stdout
22
22
, stderr
23
+ , stdinIsTTY
23
24
, stdoutIsTTY
24
25
, stderrIsTTY
25
26
, version
@@ -151,6 +152,11 @@ stdout = process.stdout
151
152
stderr :: Writable ()
152
153
stderr = process.stderr
153
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
+
154
160
-- | Check whether the standard output stream appears to be attached to a TTY.
155
161
-- | It is a good idea to check this before printing ANSI codes to stdout
156
162
-- | (e.g. for coloured text in the terminal).
You can’t perform that action at this time.
0 commit comments