Improve tail line, fix edit box
* Edit box now supports the usual keys; left/right plus home/end, and does the appropriate scrolling. * Tail line is now a top bar. * Added option to toggle tail bar, but not bound to any key.
This commit is contained in:
@@ -115,6 +115,12 @@ class Terminal
|
||||
} elseif (strncmp($this->inputBuffer, "\e[D", 3) === 0) {
|
||||
$this->inputBuffer = mb_substr($this->inputBuffer, 3);
|
||||
return "k{LEFT}";
|
||||
} elseif (strncmp($this->inputBuffer, "\e[H", 3) === 0) {
|
||||
$this->inputBuffer = mb_substr($this->inputBuffer, 3);
|
||||
return "k{HOME}";
|
||||
} elseif (strncmp($this->inputBuffer, "\e[F", 3) === 0) {
|
||||
$this->inputBuffer = mb_substr($this->inputBuffer, 3);
|
||||
return "k{END}";
|
||||
} elseif (strncmp($this->inputBuffer, "\e[5~", 4) === 0) {
|
||||
$this->inputBuffer = mb_substr($this->inputBuffer, 4);
|
||||
return "k{PGUP}";
|
||||
|
||||
Reference in New Issue
Block a user