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 e09313c commit 53d52d1Copy full SHA for 53d52d1
src/Console/Terminal.php
@@ -54,8 +54,8 @@ private static function initDimensions(): void
54
{
55
$consoleMode = self::getConsoleMode();
56
57
- if ('\\' === \DIRECTORY_SEPARATOR && is_string(\getenv('ANSICON'))) {
58
- if (\preg_match('#^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$#', \trim(\getenv('ANSICON')), $matches)) {
+ if ('\\' === \DIRECTORY_SEPARATOR) {
+ if (is_string(\getenv('ANSICON')) && \preg_match('#^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$#', \trim(\getenv('ANSICON')), $matches)) {
59
self::$width = (int) $matches[1];
60
} elseif (! self::hasVt100Support() && self::hasSttyAvailable()) {
61
self::initDimensionsUsingStty();
0 commit comments