public class AeshConsoleImpl extends Object implements AeshConsole
Modifier and Type | Method and Description |
---|---|
void |
changeOutputStream(PrintStream output) |
void |
clear()
Clear the terminal screen
|
void |
execute(String input) |
AeshContext |
getAeshContext()
Get the AeshContext
|
String |
getBuffer() |
CommandRegistry |
getCommandRegistry()
Get the CommandRegistry
|
ExportManager |
getExportManager() |
String |
getHelpInfo(String commandName)
Get a formatted usage/help info from the specified command
|
InputProcessor |
getInputProcessor() |
ManProvider |
getManProvider() |
Prompt |
getPrompt()
Get the current Prompt
|
Shell |
getShell() |
boolean |
isRunning()
Is the console currently running?
|
void |
putProcessInBackground(int pid) |
void |
putProcessInForeground(int pid) |
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.
|
public void start()
AeshConsole
start
in interface AeshConsole
public void stop()
AeshConsole
stop
in interface AeshConsole
public CommandRegistry getCommandRegistry()
AeshConsole
getCommandRegistry
in interface AeshConsole
public void setPrompt(Prompt prompt)
AeshConsole
setPrompt
in interface AeshConsole
public Prompt getPrompt()
AeshConsole
getPrompt
in interface AeshConsole
public Shell getShell()
getShell
in interface AeshConsole
public void clear()
AeshConsole
clear
in interface AeshConsole
public String getHelpInfo(String commandName)
AeshConsole
getHelpInfo
in interface AeshConsole
public void setCurrentCommandInvocationProvider(String name)
AeshConsole
setCurrentCommandInvocationProvider
in interface AeshConsole
public void registerCommandInvocationProvider(String name, CommandInvocationProvider commandInvocationProvider)
AeshConsole
registerCommandInvocationProvider
in interface AeshConsole
name
- the namecommandInvocationProvider
- the providerpublic ManProvider getManProvider()
getManProvider
in interface AeshConsole
public AeshContext getAeshContext()
AeshConsole
getAeshContext
in interface AeshConsole
public boolean isRunning()
AeshConsole
isRunning
in interface AeshConsole
public ExportManager getExportManager()
getExportManager
in interface AeshConsole
public String getBuffer()
public InputProcessor getInputProcessor()
public void putProcessInBackground(int pid)
public void putProcessInForeground(int pid)
public void execute(String input)
public void changeOutputStream(PrintStream output)
Copyright © 2020 JBoss, a division of Red Hat, Inc.. All Rights Reserved.