library/Garp/Cli/Command/Shell.php
protected function _getInput() {
        if (function_exists('readline') && function_exists('readline_add_history')) {
            $line = readline($this->_getPrompt());
            readline_add_history($line);
            return $line;
        }
        echo $this->_getPrompt();
        $line = Garp_Cli::prompt();
        return $line;
    }
protected function _getInput() {
        if (function_exists('readline') && function_exists('readline_add_history')) {
            $line = readline($this->_getPrompt());
            readline_add_history($line);
            return $line;
        }
        echo $this->_getPrompt();
        $line = Garp_Cli::prompt();
        return $line;
    }
protected function _getInput ( ) { if ( function_exists ( 'readline' ) && function_exists ( 'readline_add_history' ) ) { $ line = readline ( $ this -> _getPrompt ( ) ) ; readline_add_history ( $ line ) ; return $ line ; } echo $ this -> _getPrompt ( ) ; $ line = Garp_Cli :: prompt ( ) ; return $ line ; }
Retrieve input from the user.
Prefer readline because it supports history.

@return String
Retrieve input from the user . Prefer readline because it supports history .