<?php getenv(?string $name = null, bool $local_only = false): string|array|false
<?php $g = ($color >> 8) & 255; $b = $color & 255; if (getenv('COLORTERM') !== 'truecolor') { return (string) $this->degradeHexColorToAnsi($r, $g, $b); }
<?php public function getWidth(): int { $width = getenv('COLUMNS'); if ($width !== false) { return (int) trim($width); }
<?php public function getHeight(): int { $height = getenv('LINES'); if ($height !== false) { return (int) trim($height); }
<?php private function initDimensions(): void { if (DIRECTORY_SEPARATOR === '\\') { if (preg_match('/^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$/', trim(getenv('ANSICON')), $matches)) { self::$width = (int) $matches[1];