diff --git a/lib/terminal.js b/lib/terminal.js index 7445563..c12d492 100644 --- a/lib/terminal.js +++ b/lib/terminal.js @@ -134,12 +134,13 @@ class Terminal{ // control line wrapping lineWrapping(enabled){ + // store state + this.linewrap = enabled; + if (!this.stream.isTTY){ return; } - // store state - this.linewrap = enabled; if (enabled){ this.stream.write('\x1B[?7h'); }else{