Lggr
Public Member Functions | Public Attributes | List of all members
SebastianBergmann\Environment\Console Class Reference
Collaboration diagram for SebastianBergmann\Environment\Console:
Collaboration graph
[legend]

Public Member Functions

 hasColorSupport ()
 
 getNumberOfColumns ()
 
 isInteractive ($fileDescriptor=self::STDOUT)
 

Public Attributes

const STDIN = 0
 
const STDOUT = 1
 
const STDERR = 2
 

Member Function Documentation

◆ getNumberOfColumns()

SebastianBergmann\Environment\Console::getNumberOfColumns ( )

Returns the number of columns of the terminal.

@codeCoverageIgnore

◆ hasColorSupport()

SebastianBergmann\Environment\Console::hasColorSupport ( )

Returns true if STDOUT supports colorization.

This code has been copied and adapted from Symfony\Component\Console\Output\OutputStream.

◆ isInteractive()

SebastianBergmann\Environment\Console::isInteractive (   $fileDescriptor = self::STDOUT)

Returns if the file descriptor is an interactive terminal or not.

Parameters
int | resource$fileDescriptor

The documentation for this class was generated from the following file: