Revert "Improve command reader"

This reverts commit 900da36a1f.
This commit is contained in:
Tatsuyuki Ishi 2016-04-24 19:15:37 +09:00
commit ca8989608a

View file

@ -91,9 +91,7 @@ class CommandReader extends Thread{
if($this->readline){
readline_callback_handler_install("Genisys> ", [$this, "readline_callback"]);
$this->logger->setConsoleCallback("readline_redisplay");
}else{
stream_set_blocking($this->stdin, false);
}
}
while(!$this->shutdown){
$r = [$this->stdin];
@ -114,9 +112,7 @@ class CommandReader extends Thread{
if($this->readline){
$this->logger->setConsoleCallback(null);
readline_callback_handler_remove();
}else{
stream_set_blocking($this->stdin, true);
}
}
}
public function getThreadName(){