mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Remove keycodes from console input
This commit is contained in:
parent
c973abc36f
commit
14a40ac11e
2 changed files with 2 additions and 2 deletions
|
|
@ -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 != ""){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue