Add clearScreen to console

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4246 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-06-13 18:27:17 +00:00
parent dacdff19ed
commit 7cce0f6d1d

View File

@@ -628,6 +628,15 @@ private $usleep = 0;
}
// }}}
/** Clear all the screen and remove the scroll of the screen
*/
public function clearScreen ()
// {{{
{
echo "\033[2J\033[;H\033c";
}
// }}}
/** Call a specific function when a completion key is pressed
* @param string|bool $completionKeys The list of the completion keys. False
* unset the method