console : domci updates

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4251 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-06-15 12:02:08 +00:00
parent 22fdfe5b96
commit f5e852cc73

View File

@@ -24,7 +24,6 @@ class console
{ {
// PROPERTIES // PROPERTIES
// {{{ // {{{
private $usleep = 0;
/** Save the initial stty value /** Save the initial stty value
*/ */
private $initSttyState; private $initSttyState;
@@ -43,8 +42,9 @@ private $usleep = 0;
private $nonWriteableChar = array (1, 2, 3, 4, 6, 8, 9, 16, 18, private $nonWriteableChar = array (1, 2, 3, 4, 6, 8, 9, 16, 18,
20, 21, 22, 23, 24, 25, 27, 20, 21, 22, 23, 24, 25, 27,
127); 127);
/* The history list in an array
*/ /** The history list in an array
*/
private $history = array (); private $history = array ();
/** The history max size in entries /** The history max size in entries
@@ -247,8 +247,8 @@ private $usleep = 0;
* Stop when the user valid by \n. * Stop when the user valid by \n.
* Manage correctely the backspace, the Ctrl+W to remove word... * Manage correctely the backspace, the Ctrl+W to remove word...
* @param string $propo Preset the text for the user * @param string $propo Preset the text for the user
* @param bool|string $stopperChar The chars to stop the analysis and return * @param boolean|string $stopperChar The chars to stop the analysis and
* the result * return the result
* @return The typed string * @return The typed string
*/ */
public function readline ($propo = "", $stopperChar = false) public function readline ($propo = "", $stopperChar = false)
@@ -859,10 +859,10 @@ private $usleep = 0;
if ($tmp !== $part) if ($tmp !== $part)
{ {
break 2; break 2;
} }
} }
$identicalString = $tmp; $identicalString = $tmp;
$sameCharLength++; $sameCharLength++;
} }
return $identicalString; return $identicalString;
} }