Skip to content

Commit

Permalink
Enable interactive mode only on tty.WriteStream streams. Fixes #55 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani authored Feb 26, 2019
1 parent d7d67a9 commit 54a3377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signale.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class Signale {
}

_write(stream, message) {
if (this._interactive && isPreviousLogInteractive) {
if (this._interactive && stream.isTTY && isPreviousLogInteractive) {
stream.moveCursor(0, -1);
stream.clearLine();
stream.cursorTo(0);
Expand Down

0 comments on commit 54a3377

Please sign in to comment.