public function getTerminalWidth()
    {
        $terminalDimensions = $this->getTerminalDimensions();

        $width = 120;
        if (isset($terminalDimensions[0]) && $terminalDimensions[0] > 0) {
            $width = $terminalDimensions[0];
        }

        return $width;
    }