Beispiel #1
0
 /**
  * Returns whether Stty is available or not.
  *
  * @return bool
  */
 private function hasSttyAvailable()
 {
     if (null !== self::$stty) {
         return self::$stty;
     }
     exec('stty 2>&1', $output, $exitcode);
     return self::$stty = $exitcode === 0;
 }