public interface AeshConsole
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the terminal screen
|
AeshContext |
getAeshContext()
Get the AeshContext
|
CommandRegistry |
getCommandRegistry()
Get the CommandRegistry
|
ExportManager |
getExportManager() |
String |
getHelpInfo(String commandName)
Get a formatted usage/help info from the specified command
|
ManProvider |
getManProvider() |
Prompt |
getPrompt()
Get the current Prompt
|
Shell |
getShell() |
boolean |
isRunning()
Is the console currently running?
|
void |
registerCommandInvocationProvider(String name,
CommandInvocationProvider commandInvocationProvider)
Register a new CommandInvocationProvider
|
void |
setCurrentCommandInvocationProvider(String name)
Specify the current CommandInvocationProvider
|
void |
setPrompt(Prompt prompt)
Specify the prompt
|
void |
start()
Start the Console.
|
void |
stop()
Stop the Console, close streams and reset terminal settings.
|
void start()
void stop()
CommandRegistry getCommandRegistry()
void setPrompt(Prompt prompt)
Prompt getPrompt()
Shell getShell()
void clear()
String getHelpInfo(String commandName)
void setCurrentCommandInvocationProvider(String name)
void registerCommandInvocationProvider(String name, CommandInvocationProvider commandInvocationProvider)
name
- the namecommandInvocationProvider
- the providerManProvider getManProvider()
AeshContext getAeshContext()
boolean isRunning()
ExportManager getExportManager()
Copyright © 2017 JBoss by Red Hat. All rights reserved.