protected function processLine($eol)
    {
        // reset history cycle position
        $this->historyPosition = null;
        $this->historyUnsaved = null;

        // store and reset/clear/redraw current input
        $line = $this->linebuffer;
        if ($line !== '') {
            // the line is not empty, reset it (and implicitly redraw prompt)
            $this->setInput('');
        } elseif ($this->echo !== false) {
            // explicitly redraw prompt after empty line
            $this->redraw();
        }

        // process stored input buffer
        $this->emit('data', array($line . $eol));
    }
protected function processLine($eol)
    {
        // reset history cycle position
        $this->historyPosition = null;
        $this->historyUnsaved = null;

        // store and reset/clear/redraw current input
        $line = $this->linebuffer;
        if ($line !== '') {
            // the line is not empty, reset it (and implicitly redraw prompt)
            $this->setInput('');
        } elseif ($this->echo !== false) {
            // explicitly redraw prompt after empty line
            $this->redraw();
        }

        // process stored input buffer
        $this->emit('data', array($line . $eol));
    }
protected function processLine ( $ eol ) { // reset history cycle position $ this -> historyPosition = null ; $ this -> historyUnsaved = null ; // store and reset/clear/redraw current input $ line = $ this -> linebuffer ; if ( $ line !== '' ) { // the line is not empty, reset it (and implicitly redraw prompt) $ this -> setInput ( '' ) ; } elseif ( $ this -> echo !== false ) { // explicitly redraw prompt after empty line $ this -> redraw ( ) ; } // process stored input buffer $ this -> emit ( 'data' , array ( $ line . $ eol ) ) ; }
process the current line buffer, emit event and redraw empty line

@uses self::setInput()
process the current line buffer emit event and redraw empty line