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

Breadcrumb

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

function Terminal::getHeight

Gets the terminal height.

File

vendor/symfony/console/Terminal.php, line 103

Class

Terminal

Namespace

Symfony\Component\Console

Code

public function getHeight() : int {
    $height = getenv('LINES');
    if (false !== $height) {
        return (int) trim($height);
    }
    if (null === self::$height) {
        self::initDimensions();
    }
    return self::$height ?: 50;
}

API Navigation

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