public interface AeshConsole
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the terminal screen
|
void |
execute(String input)
The input data will be pushed to the input stream and parsed similar to user input.
|
AeshContext |
getAeshContext()
Get the AeshContext
|
CommandRegistry |
getCommandRegistry()
Get the CommandRegistry
|
ConsoleCallback |
getConsoleCallback() |
ExportManager |
getExportManager() |
String |
getHelpInfo(String commandName)
Get a formatted usage/help info from the specified command
|
History |
getHistory() |
ManProvider |
getManProvider() |
Prompt |
getPrompt()
Get the current Prompt
|
Shell |
getShell() |
boolean |
isEchoing() |
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 |
setEcho(boolean echo) |
void |
setPrompt(Prompt prompt)
Specify the prompt
|
void |
start()
Start the Console.
|
void |
stop()
Stop the Console, close streams and reset terminal settings.
|
ConsoleCallback getConsoleCallback()
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()
void execute(String input)
input
- databoolean isEchoing()
void setEcho(boolean echo)
History getHistory()
Copyright © 2017 JBoss by Red Hat. All rights reserved.