We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d2b582 + 105bc96 commit c5f9c03Copy full SHA for c5f9c03
lib/cli/Shell.php
@@ -49,8 +49,10 @@ static public function columns() {
49
}
50
51
} else {
52
- if ( getenv( 'TERM' ) ) {
53
- $columns = (int) exec( '/usr/bin/env tput cols' );
+ if ( ! ( $columns = (int) getenv( 'COLUMNS' ) ) ) {
+ if ( getenv( 'TERM' ) ) {
54
+ $columns = (int) exec( '/usr/bin/env tput cols 2>/dev/null' );
55
+ }
56
57
58
0 commit comments