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;
    }