diff --git a/console.php b/console.php index 2699a25..f56163c 100644 --- a/console.php +++ b/console.php @@ -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