public function stdin($c) { if ($c === '') { $this->onWrite($this->proc); } else { $this->proc->write($c); } }