|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.cmdl.ReadlineConsole
public class ReadlineConsole
A wrapper class for JavaReadline and the GNU Readline library.
| Nested Class Summary | |
|---|---|
class |
ReadlineConsole.MyCompleter
|
| Constructor Summary | |
|---|---|
ReadlineConsole()
|
|
| Method Summary | |
|---|---|
Command |
getCommand(java.lang.String command)
Returns the Command object that is associated with
commandName. |
Command[] |
getCommands()
Returns all supported commands. |
boolean |
isEchoing()
Returns true, input is echoed on screen. |
void |
println(java.lang.String output)
Prints to stdout. |
java.lang.String |
readln(java.lang.String prompt)
Display a prompt on standard output and read a string from standard input. |
void |
saveSettings()
This should be called when the application is closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadlineConsole()
| Method Detail |
|---|
public Command getCommand(java.lang.String command)
ConsoleCommand object that is associated with
commandName.
getCommand in interface Consolepublic Command[] getCommands()
Console
getCommands in interface Consolepublic boolean isEchoing()
Console
isEchoing in interface Consolepublic java.lang.String readln(java.lang.String prompt)
readln in interface Consoleprompt - Prompt to display
public void println(java.lang.String output)
println in interface Consoleoutput - Text to showpublic void saveSettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||