/** * Shows Input * Linux Only * @todo Provide viable alternative for windows */ protected function showInput() { if (!Console::isRunningOnWindows()) { system('stty echo'); } }
/** * @todo Move to a CLI Helper Class * @todo Make compatible with Windows (stty alternative) */ private function unhideUserInput() { if (!\yii\helpers\Console::isRunningOnWindows()) { system('stty echo'); } }