Chris@0: setName('clear') Chris@0: ->setDefinition([]) Chris@0: ->setDescription('Clear the Psy Shell screen.') Chris@0: ->setHelp( Chris@0: <<<'HELP' Chris@0: Clear the Psy Shell screen. Chris@0: Chris@0: Pro Tip: If your PHP has readline support, you should be able to use ctrl+l too! Chris@0: HELP Chris@0: ); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: protected function execute(InputInterface $input, OutputInterface $output) Chris@0: { Chris@4: $output->write(\sprintf('%c[2J%c[0;0f', 27, 27)); Chris@0: } Chris@0: }