Bugfixes in lineread, implemented command history
This commit is contained in:
		@@ -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;
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user