public function Console::isInteractive in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/sebastian/environment/src/Console.php \SebastianBergmann\Environment\Console::isInteractive()
Returns if the file descriptor is an interactive terminal or not.
Parameters
int|resource $fileDescriptor:
Return value
bool
2 calls to Console::isInteractive()
- Console::getNumberOfColumns in vendor/
sebastian/ environment/ src/ Console.php - Returns the number of columns of the terminal.
- Console::hasColorSupport in vendor/
sebastian/ environment/ src/ Console.php - Returns true if STDOUT supports colorization.
File
- vendor/
sebastian/ environment/ src/ Console.php, line 77
Class
Namespace
SebastianBergmann\EnvironmentCode
public function isInteractive($fileDescriptor = self::STDOUT) {
return function_exists('posix_isatty') && @posix_isatty($fileDescriptor);
}