public interface Settings extends Cloneable
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
doExportUsesSystemEnvironment()
Is load environment system?
|
boolean |
doPersistAlias()
Is alias persisted
|
boolean |
doPersistExport()
Is aesh persisting variables at shutdown
|
boolean |
doReadInputrc()
Do aesh read inputrc during init
|
AeshContext |
getAeshContext()
Get aesh context
|
File |
getAliasFile()
Location of alias file
|
String |
getBellStyle()
Get bell style
NOTE: Not used yet
|
EditMode |
getEditMode()
Get current edit mode
|
String |
getExecuteAtStart() |
Resource |
getExecuteFileAtStart() |
File |
getExportFile()
Get the export file
Defaults to ~/.aesh_export
|
File |
getHistoryFile()
Get file where history is stored
|
FileAccessPermission |
getHistoryFilePermission()
Get history file access permission, this is used when write to history file.
|
int |
getHistorySize()
Get history size
|
File |
getInputrc()
Get inputrc file location
|
InputStream |
getInputStream()
Get input stream
|
InterruptHook |
getInterruptHook()
Get interrupt hook
|
String |
getLogFile()
Get location of log file
|
Mode |
getMode()
Get the current Mode.
|
String |
getName()
Get the name of the cli
Default is "aesh"
|
KeyOperationManager |
getOperationManager()
Get KeyOperationManager
|
QuitHandler |
getQuitHandler()
Get quit handler
|
Resource |
getResource() |
PrintStream |
getStdErr()
Get standard error stream
|
PrintStream |
getStdOut()
Get standard output stream
|
Terminal |
getTerminal()
Get current terminal
|
boolean |
hasInterruptHook()
Is an interrupt hook defined
|
boolean |
isAliasEnabled()
Is alias enabled
|
boolean |
isAnsiConsole()
If the current console is an ANSI console
|
boolean |
isCompletionDisabled()
Is completion disabled
|
boolean |
isExportEnabled()
Are export enabled?
|
boolean |
isHistoryDisabled()
Is history disabled
|
boolean |
isHistoryPersistent()
Is history persisted during shutdown
|
boolean |
isLogging()
Are we logging
|
boolean |
isManEnabled()
Is the man command enabled (currently only for AeshConsole)
|
boolean |
isOperatorParserEnabled()
Is operator parser enabled
|
void |
resetEditMode()
Reset edit mode
|
void |
setExecuteAtStart(String execute) |
void |
setExecuteFileAtStart(Resource executeFileAtStart) |
void |
setExportUsesSystemEnvironment(boolean isLoad)
Aesh load environment system.
|
void |
setPersistExport(boolean persist)
Should aesh persist export variables at shutdown
|
void |
setResource(Resource resource)
Specify
|
void |
switchMode()
Switch from Emacs to Vi mode (or back)
|
String getName()
Mode getMode()
EditMode getEditMode()
void resetEditMode()
KeyOperationManager getOperationManager()
File getHistoryFile()
FileAccessPermission getHistoryFilePermission()
null
means default file permission revealed by system.int getHistorySize()
String getBellStyle()
boolean isAnsiConsole()
InputStream getInputStream()
PrintStream getStdOut()
PrintStream getStdErr()
Terminal getTerminal()
File getInputrc()
boolean isLogging()
boolean isCompletionDisabled()
String getLogFile()
boolean doReadInputrc()
boolean isHistoryDisabled()
boolean isHistoryPersistent()
File getAliasFile()
boolean isAliasEnabled()
boolean doPersistAlias()
QuitHandler getQuitHandler()
boolean hasInterruptHook()
InterruptHook getInterruptHook()
boolean isOperatorParserEnabled()
void switchMode()
boolean isManEnabled()
AeshContext getAeshContext()
File getExportFile()
boolean isExportEnabled()
void setPersistExport(boolean persist)
boolean doPersistExport()
void setExportUsesSystemEnvironment(boolean isLoad)
boolean doExportUsesSystemEnvironment()
void setResource(Resource resource)
resource
- void setExecuteAtStart(String execute)
execute
- specify a string that will be pushed to the input stream at startString getExecuteAtStart()
void setExecuteFileAtStart(Resource executeFileAtStart)
executeFileAtStart
- file that will be read, parsed and executed at startResource getExecuteFileAtStart()
Resource getResource()
Object clone()
Copyright © 2021 JBoss by Red Hat. All rights reserved.