Platform.php
public static function hasStty() : bool
    {
        // Return the cached result if it's already available.
        if (static::$hasStty !== null) {
            return static::$hasStty;
        }

        // Definitely no Stty on Windows.
        if (static::isWindows()) {
            return static::$hasStty = false;
        }

        // Run a simple exec() call and check whether it returned with an error code.
        exec('/usr/bin/env stty', $output, $exitCode);

        return static::$hasStty = $exitCode === 0;
    }
public static function hasStty() : bool
    {
        // Return the cached result if it's already available.
        if (static::$hasStty !== null) {
            return static::$hasStty;
        }

        // Definitely no Stty on Windows.
        if (static::isWindows()) {
            return static::$hasStty = false;
        }

        // Run a simple exec() call and check whether it returned with an error code.
        exec('/usr/bin/env stty', $output, $exitCode);

        return static::$hasStty = $exitCode === 0;
    }
public static function hasStty ( ) : bool { // Return the cached result if it's already available. if ( static :: $ hasStty !== null ) { return static :: $ hasStty ; } // Definitely no Stty on Windows. if ( static :: isWindows ( ) ) { return static :: $ hasStty = false ; } // Run a simple exec() call and check whether it returned with an error code. exec ( '/usr/bin/env stty' , $ output , $ exitCode ) ; return static :: $ hasStty = $ exitCode === 0 ; }
Checks whether this platform has the 'stty' binary.

@return  bool    True when 'stty' is available on this platform, false otherwise (always false on Windows).
Checks whether this platform has the stty binary .