Bugfixes in lineread, implemented command history

This commit is contained in:
2016-11-02 22:11:35 +01:00
parent 427cac578a
commit 46806e3d62
4 changed files with 36 additions and 21 deletions

View File

@ -300,8 +300,14 @@ class Shell
if (!($buffer = $this->lineReader->update())) {
usleep(10000);
}
// Escape is handy too...
if ($buffer == "\e") {
$this->dispatchEvent("shell.abort");
continue;
}
// we get a ^C on ^C, so deal with the ^C.
if ($buffer == "\x03") {
$this->dispatchEvent("shell.stop");
$this->stop();
continue;
}