Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Console.php

function Console::getNumberOfColumns

Returns the number of columns of the terminal.

@codeCoverageIgnore

File

vendor/sebastian/environment/src/Console.php, line 84

Class

Console

Namespace

SebastianBergmann\Environment

Code

public function getNumberOfColumns() : int {
    if (!$this->isInteractive(defined('STDIN') ? STDIN : self::STDIN)) {
        return 80;
    }
    if ($this->isWindows()) {
        return $this->getNumberOfColumnsWindows();
    }
    return $this->getNumberOfColumnsInteractive();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal