private function DialogHelper::hasSttyAvailable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Helper/DialogHelper.php \Symfony\Component\Console\Helper\DialogHelper::hasSttyAvailable()
2 calls to DialogHelper::hasSttyAvailable()
- DialogHelper::ask in vendor/
symfony/ console/ Helper/ DialogHelper.php - Asks a question to the user.
- DialogHelper::askHiddenResponse in vendor/
symfony/ console/ Helper/ DialogHelper.php - Asks a question to the user, the response is hidden.
File
- vendor/
symfony/ console/ Helper/ DialogHelper.php, line 444
Class
- DialogHelper
- The Dialog class provides helpers to interact with the user.
Namespace
Symfony\Component\Console\HelperCode
private function hasSttyAvailable() {
if (null !== self::$stty) {
return self::$stty;
}
exec('stty 2>&1', $output, $exitcode);
return self::$stty = $exitcode === 0;
}