public interface Terminal
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
changeOutputStream(java.io.PrintStream output)
During runtime, change the output stream
|
Shell |
getShell() |
boolean |
hasInput()
Check if the terminal has input waiting to be read.
|
void |
init(Settings settings)
Initialize the Terminal with which input/output stream it should use
|
boolean |
isEchoEnabled() |
int[] |
read()
Read from the input stream (char by char)
|
void |
reset()
Set it back to normal when we exit
|
void |
writeToInputStream(java.lang.String data) |
void init(Settings settings)
int[] read()
throws java.io.IOException
java.io.IOExceptionboolean hasInput()
boolean isEchoEnabled()
void reset()
throws java.io.IOException
java.io.IOException - streamShell getShell()
void writeToInputStream(java.lang.String data)
void changeOutputStream(java.io.PrintStream output)
output - stream