Skip to content

Commit ea73be0

Browse files
committed
terminal width information is obtained from stream.columns - fallback value set to 80
1 parent 955c85e commit ea73be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Terminal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Terminal{
7373

7474
// get terminal width
7575
getWidth(){
76-
return process.stdout.columns || 80;
76+
return this.stream.columns || 80;
7777
}
7878
}
7979

0 commit comments

Comments
 (0)