Skip to content

Commit

Permalink
terminal width information is obtained from stream.columns - fallback…
Browse files Browse the repository at this point in the history
… value set to 80
  • Loading branch information
AndiDittrich committed Aug 9, 2018
1 parent 955c85e commit ea73be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Terminal{

// get terminal width
getWidth(){
return process.stdout.columns || 80;
return this.stream.columns || 80;
}
}

Expand Down

0 comments on commit ea73be0

Please sign in to comment.