original_string: public static function isTtySupported(): bool
      {
          static $isTtySupported;
  
          if (null === $isTtySupported) {
              $isTtySupported = (bool) @proc_open('echo 1 >/dev/null', [['file', '/dev/tty', 'r'], ['file', '/dev/tty', 'w'], ['file', '/dev/tty', 'w']], $pipes);
          }
  
          return $isTtySupported;
      }
code: public static function isTtySupported(): bool
      {
          static $isTtySupported;
  
          if (null === $isTtySupported) {
              $isTtySupported = (bool) @proc_open('echo 1 >/dev/null', [['file', '/dev/tty', 'r'], ['file', '/dev/tty', 'w'], ['file', '/dev/tty', 'w']], $pipes);
          }
  
          return $isTtySupported;
      }
code_tokens: public static function isTtySupported ( ) : bool { static $ isTtySupported ; if ( null === $ isTtySupported ) { $ isTtySupported = ( bool ) @ proc_open ( 'echo 1 >/dev/null' , [ [ 'file' , '/dev/tty' , 'r' ] , [ 'file' , '/dev/tty' , 'w' ] , [ 'file' , '/dev/tty' , 'w' ] ] , $ pipes ) ; } return $ isTtySupported ; }
docstring: Returns whether TTY is supported on the current operating system.
docstring_tokens: Returns whether TTY is supported on the current operating system .