console : domci updates
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4251 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
16
console.php
16
console.php
@@ -24,7 +24,6 @@ class console
|
||||
{
|
||||
// PROPERTIES
|
||||
// {{{
|
||||
private $usleep = 0;
|
||||
/** Save the initial stty value
|
||||
*/
|
||||
private $initSttyState;
|
||||
@@ -43,8 +42,9 @@ private $usleep = 0;
|
||||
private $nonWriteableChar = array (1, 2, 3, 4, 6, 8, 9, 16, 18,
|
||||
20, 21, 22, 23, 24, 25, 27,
|
||||
127);
|
||||
/* The history list in an array
|
||||
*/
|
||||
|
||||
/** The history list in an array
|
||||
*/
|
||||
private $history = array ();
|
||||
|
||||
/** The history max size in entries
|
||||
@@ -247,8 +247,8 @@ private $usleep = 0;
|
||||
* Stop when the user valid by \n.
|
||||
* Manage correctely the backspace, the Ctrl+W to remove word...
|
||||
* @param string $propo Preset the text for the user
|
||||
* @param bool|string $stopperChar The chars to stop the analysis and return
|
||||
* the result
|
||||
* @param boolean|string $stopperChar The chars to stop the analysis and
|
||||
* return the result
|
||||
* @return The typed string
|
||||
*/
|
||||
public function readline ($propo = "", $stopperChar = false)
|
||||
@@ -859,10 +859,10 @@ private $usleep = 0;
|
||||
if ($tmp !== $part)
|
||||
{
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$identicalString = $tmp;
|
||||
$sameCharLength++;
|
||||
$sameCharLength++;
|
||||
}
|
||||
return $identicalString;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user