protected function onRead($data)
    {
        if (!$this->remove || $this->autocomplete || $this->question->isHidden()) {
            return;
        }

        $this->output->captureUserInput($data);
    }
protected function onRead($data)
    {
        if (!$this->remove || $this->autocomplete || $this->question->isHidden()) {
            return;
        }

        $this->output->captureUserInput($data);
    }
protected function onRead ( $ data ) { if ( ! $ this -> remove || $ this -> autocomplete || $ this -> question -> isHidden ( ) ) { return ; } $ this -> output -> captureUserInput ( $ data ) ; }
On input stream read.

We capture user input here if applicable.

We can't use the return value of ask() because it is trimmed.
We need to account for those extra characters when overwriting.

@param string $data
On input stream read .