X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FCommand%2FClearCommand.php;fp=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FCommand%2FClearCommand.php;h=470f61de55e1c686c003ecfe1533115bb19ee0f8;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/psy/psysh/src/Psy/Command/ClearCommand.php b/vendor/psy/psysh/src/Psy/Command/ClearCommand.php new file mode 100644 index 000000000..470f61de5 --- /dev/null +++ b/vendor/psy/psysh/src/Psy/Command/ClearCommand.php @@ -0,0 +1,49 @@ +setName('clear') + ->setDefinition(array()) + ->setDescription('Clear the Psy Shell screen.') + ->setHelp( + <<<'HELP' +Clear the Psy Shell screen. + +Pro Tip: If your PHP has readline support, you should be able to use ctrl+l too! +HELP + ); + } + + /** + * {@inheritdoc} + */ + protected function execute(InputInterface $input, OutputInterface $output) + { + $output->write(sprintf('%c[2J%c[0;0f', 27, 27)); + } +}