Remove keycodes from console input

This commit is contained in:
Shoghi Cervantes 2013-11-23 10:46:24 +01:00
parent c973abc36f
commit 14a40ac11e
2 changed files with 2 additions and 2 deletions

View file

@ -273,7 +273,7 @@ class ConsoleAPI{
return;
}
if($this->loop->line !== false){
$line = trim($this->loop->line);
$line = preg_replace("#\\x1b\\x5b([^\\x1b]*\\x7e|[\\x40-\\x50])#", "", trim($this->loop->line));
$this->loop->line = false;
$output = $this->run($line, "console");
if($output != ""){