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.
1 parent 03d2882 commit 733c452Copy full SHA for 733c452
lib/cli/Shell.php
@@ -24,10 +24,10 @@ class Shell {
24
* @todo Test on more systems.
25
*/
26
static public function columns() {
27
- if( isset( $_SERVER['OS'] ) && strpos( $_SERVER['OS'], 'indows' ) !== false )
28
- return exec('/usr/bin/env tput cols');
29
- else
30
- return 80; // default width of cmd window on Windows OS, maybe force using MODE CON COLS=XXX?
+ if ( file_exists('/usr/bin/env') ) {
+ return exec('/usr/bin/env tput cols');
+ }
+ return 80; // default width of cmd window on Windows OS, maybe force using MODE CON COLS=XXX?
31
}
32
33
/**
0 commit comments