public function resume() { if ($this->readable) { $this->loop->addReadStream($this->stream, array($this, 'handleData')); } }
public function resume() { if ($this->oldMode === null) { $this->oldMode = shell_exec('stty -g'); // Disable icanon (so we can fread each keypress) and echo (we'll do echoing here instead) shell_exec('stty -icanon -echo'); parent::resume(); } }