From 3c24df238f0e0c5f3342015f20b8b90c8dbbe41f Mon Sep 17 00:00:00 2001 From: Benjamin Goering Date: Tue, 17 Jul 2018 05:12:46 -0700 Subject: [PATCH] Don't call stream TTY methods on streams that are not TTYs (#82) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6467688..093c758 100644 --- a/index.js +++ b/index.js @@ -72,7 +72,7 @@ class Ora { } clear() { - if (!this.enabled) { + if (!this.enabled || !this.stream.isTTY) { return this; }