|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JunoTerminal
A Command line interface terminal for Juno.
Constructor Summary | |
JunoTerminal(boolean echo)
Construct a JunoTerminal Allows for input echo, when, for example, input is redirected from a file. |
Method Summary | |
void |
errPrintln(String str)
Write a String followed by a newline to console error output location. |
boolean |
isEchoInput()
Query what kind of console this is. |
boolean |
isGUI()
Query what kind of console this is. |
boolean |
isRemote()
Query what kind of console this is. |
void |
println(String str)
Write a String followed by a newline to console output location. |
String |
readLine(String promptString)
Read a line (terminated by a newline). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JunoTerminal(boolean echo)
echo
- whether or not input should be echoed.Method Detail |
public void errPrintln(String str)
errPrintln
in interface OutputInterface
str
- - the String to writepublic boolean isEchoInput()
isEchoInput
in interface OutputInterface
public boolean isGUI()
isGUI
in interface OutputInterface
public boolean isRemote()
isRemote
in interface OutputInterface
public void println(String str)
println
in interface OutputInterface
str
- - the string to writepublic String readLine(String promptString)
readLine
in interface InputInterface
promptString
- output string to prompt for input
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |