public static function guessFormatOutput($stream = STDOUT) {
        if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
            return false;
        } elseif (function_exists('posix_isatty')) {
            try {
                return @posix_isatty($stream);
            } catch (\Throwable $ex) {
                return false;
            }
        } else {
            return true;
        }
    }