public interface Console
| Modifier and Type | Interface and Description |
|---|---|
static class |
Console.Factory |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompleter(CommandLineCompleter completer) |
void |
clearScreen() |
CommandHistory |
getHistory() |
int |
getTerminalHeight() |
int |
getTerminalWidth() |
void |
interrupt()
Interrupts blocking readLine method.
|
boolean |
isCompletionEnabled()
Checks whether the tab-completion is enabled.
|
boolean |
isUseHistory() |
void |
print(String line) |
void |
printColumns(Collection<String> list) |
void |
printNewLine() |
String |
readLine(String prompt) |
String |
readLine(String prompt,
Character mask) |
void |
setCompletionEnabled(boolean completionEnabled)
Enables or disables the tab-completion.
|
void |
setHistoryFile(File f) |
void |
setUseHistory(boolean useHistory) |
void addCompleter(CommandLineCompleter completer)
boolean isUseHistory()
void setUseHistory(boolean useHistory)
CommandHistory getHistory()
void setHistoryFile(File f)
void clearScreen()
void printColumns(Collection<String> list)
void print(String line)
void printNewLine()
int getTerminalWidth()
int getTerminalHeight()
boolean isCompletionEnabled()
void setCompletionEnabled(boolean completionEnabled)
completionEnabled - true will enable the tab-completion, false will disable itvoid interrupt()
Copyright © 2015 JBoss by Red Hat. All rights reserved.