diff --git a/Classes/Command/AbstractCommandController.php b/Classes/Command/AbstractCommandController.php index b464fa2..da99713 100644 --- a/Classes/Command/AbstractCommandController.php +++ b/Classes/Command/AbstractCommandController.php @@ -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);