Peridot\Reporter\AbstractBaseReporter::isTtyTerminal PHP Method

isTtyTerminal() private method

See if stream output is a tty terminal.
private isTtyTerminal ( Symfony\Component\Console\Output\StreamOutput $output ) : boolean
$output Symfony\Component\Console\Output\StreamOutput
return boolean
    private function isTtyTerminal(StreamOutput $output)
    {
        $tty = function_exists('posix_isatty') && @posix_isatty($output->getStream());
        if ($tty) {
            putenv("PERIDOT_TTY=1");
        }
        return $tty;
    }