From d708af89c6a8b4dcdaf6c51644479fba40dbbe7a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 13 Jun 2018 13:47:01 +0000 Subject: [PATCH] console : remove not needed comments on old tests git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4242 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- console.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/console.php b/console.php index 72d1c33..3bc7d62 100644 --- a/console.php +++ b/console.php @@ -336,10 +336,14 @@ private $usleep = 0; // }}} elseif (ord ($char) === 3) // Abort (Ctrl+C) + // {{{ { $this->clearLine (); + $this->lineContent = ""; + $this->echo ($prompt."\n"); return ""; } + // }}} elseif (ord ($char) === 4) // Logout (Ctrl+D) // {{{ @@ -574,12 +578,6 @@ private $usleep = 0; echo $this->lineContent; $this->cursorPos = mb_strlen ($this->lineContent); } -/* if ($this->echoMode) - { - echo "\r".str_repeat (" ", mb_strlen ($this->lineContent))."\r"; - $this->lineContent = $text; - echo $this->lineContent; - }*/ } // }}} @@ -610,8 +608,6 @@ private $usleep = 0; $needMovePos = -1 + $cursorPos - ($wantedLine - 1) * $this->termWidth; echo "\r".str_repeat (chr (27).chr (91).chr (67), $needMovePos); $this->cursorPos = $cursorPos; - // On unique line : - //echo "\r".str_repeat (chr (27).chr (91).chr (67), $cursorPos); } } // }}}