diff --git a/console.php b/console.php index 695b0d3..0abffc4 100644 --- a/console.php +++ b/console.php @@ -451,10 +451,10 @@ class console elseif (ord ($char{0}) === 27) { // ESC SEQUENCE - /*file_put_contents ("/tmp/debug", "SEQ CHAR=", FILE_APPEND); + $sequence = ""; foreach (str_split ($char) as $key) - file_put_contents ("/tmp/debug", ord ($key)." ", FILE_APPEND); - file_put_contents ("/tmp/debug", "\n", FILE_APPEND);*/ + $sequence .= ord ($key)." "; + $this->debug ("ESC SEQUENCE : $sequence"); if ($char === chr (27).chr (91).chr (49).chr (59).chr (53).chr (67)) // Cursor right + Ctrl : cursor jump by word // {{{