- java.lang.Object
-
- picocli.shell.jline3.PicocliCommands.ClearScreen
-
- Enclosing class:
- PicocliCommands
public static class PicocliCommands.ClearScreen extends Object implements Callable<Void>
Command that clears the screen.WARNING: This subcommand needs a JLine
Terminalto clear the screen. To accomplish this, construct theCommandLinewith aPicocliCommandsFactory, and set theTerminalon that factory. For example:@Command(subcommands = PicocliCommands.ClearScreen.class) class MyApp //... PicocliCommandsFactory factory = new PicocliCommandsFactory(); CommandLine cmd = new CommandLine(new MyApp(), factory); // create terminal factory.setTerminal(terminal);
- Since:
- 4.6
-
-
Method Detail
-
call
public Void call() throws IOException
- Specified by:
callin interfaceCallable<Void>- Throws:
IOException
-
-