Skip to content

Commit

Permalink
Increase terminal width detection for Docker
Browse files Browse the repository at this point in the history
The maximum auto-detected terminal width is adjusted for Docker containers from 120 characters to 140 characters. This considers the possibility of wider terminals in Docker environments, ensuring that the terminal output better accommodates for additional space.
  • Loading branch information
Denis Smet committed Mar 14, 2024
1 parent ec96c1d commit b40827d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static function autoDetectTerminalWidth(): int
if (self::isGithubActions()) {
$maxAutoDetected = 200; // GitHub Actions has a wide terminal
} elseif (self::isDocker()) {
$maxAutoDetected = 120;
$maxAutoDetected = 140;
} else {
// Fallback value is 80
$maxAutoDetected = Env::int('COLUMNS_TEST', Cli::getNumberOfColumns());
Expand Down

0 comments on commit b40827d

Please sign in to comment.