Skip to content

Commit

Permalink
Merge pull request #9 from mbrodala/patch-1
Browse files Browse the repository at this point in the history
[BUGFIX] Determine width only in regular terminal
  • Loading branch information
Michiel Roos authored Jul 15, 2016
2 parents b36c89c + 766f64f commit 41640dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Command/AbstractCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}

// Get terminal width
if (@exec('tput cols')) {
if (getenv('TERM') && @exec('tput cols')) {
define('TERMINAL_WIDTH', exec('tput cols'));
} else {
define('TERMINAL_WIDTH', 79);
Expand Down

0 comments on commit 41640dc

Please sign in to comment.