From e4ec389955a980fd6b93955460a3746f1422864c Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sat, 7 Jul 2018 19:15:30 +0000 Subject: [PATCH] console : record the ESC SEQUENCE in debug git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4272 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- console.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 // {{{