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