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()
AeshConsolestart in interface AeshConsolepublic void stop()
AeshConsolestop in interface AeshConsolepublic CommandRegistry getCommandRegistry()
AeshConsolegetCommandRegistry in interface AeshConsolepublic void setPrompt(Prompt prompt)
AeshConsolesetPrompt in interface AeshConsolepublic Prompt getPrompt()
AeshConsolegetPrompt in interface AeshConsolepublic Shell getShell()
getShell in interface AeshConsolepublic void clear()
AeshConsoleclear in interface AeshConsolepublic String getHelpInfo(String commandName)
AeshConsolegetHelpInfo in interface AeshConsolepublic void setCurrentCommandInvocationProvider(String name)
AeshConsolesetCurrentCommandInvocationProvider in interface AeshConsolepublic void registerCommandInvocationProvider(String name, CommandInvocationProvider commandInvocationProvider)
AeshConsoleregisterCommandInvocationProvider in interface AeshConsolename - the namecommandInvocationProvider - the providerpublic ManProvider getManProvider()
getManProvider in interface AeshConsolepublic AeshContext getAeshContext()
AeshConsolegetAeshContext in interface AeshConsolepublic boolean isRunning()
AeshConsoleisRunning in interface AeshConsolepublic ExportManager getExportManager()
getExportManager in interface AeshConsolepublic 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 © 2024 JBoss by Red Hat. All rights reserved.