console : remove not needed comments on old tests

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4242 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-06-13 13:47:01 +00:00
parent 57739c624b
commit d708af89c6

View File

@@ -336,10 +336,14 @@ private $usleep = 0;
// }}} // }}}
elseif (ord ($char) === 3) elseif (ord ($char) === 3)
// Abort (Ctrl+C) // Abort (Ctrl+C)
// {{{
{ {
$this->clearLine (); $this->clearLine ();
$this->lineContent = "";
$this->echo ($prompt."\n");
return ""; return "";
} }
// }}}
elseif (ord ($char) === 4) elseif (ord ($char) === 4)
// Logout (Ctrl+D) // Logout (Ctrl+D)
// {{{ // {{{
@@ -574,12 +578,6 @@ private $usleep = 0;
echo $this->lineContent; echo $this->lineContent;
$this->cursorPos = mb_strlen ($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; $needMovePos = -1 + $cursorPos - ($wantedLine - 1) * $this->termWidth;
echo "\r".str_repeat (chr (27).chr (91).chr (67), $needMovePos); echo "\r".str_repeat (chr (27).chr (91).chr (67), $needMovePos);
$this->cursorPos = $cursorPos; $this->cursorPos = $cursorPos;
// On unique line :
//echo "\r".str_repeat (chr (27).chr (91).chr (67), $cursorPos);
} }
} }
// }}} // }}}