|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
Console
Command
object that is associated with
commandName
.
getCommand
in interface Console
public Command[] getCommands()
Console
getCommands
in interface Console
public boolean isEchoing()
Console
isEchoing
in interface Console
public java.lang.String readln(java.lang.String prompt)
readln
in interface Console
prompt
- Prompt to display
public void println(java.lang.String output)
println
in interface Console
output
- Text to showpublic void saveSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |