public interface Terminal extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
changeOutputStream(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(String data) |
void init(Settings settings)
int[] read() throws IOException
IOException
boolean hasInput()
boolean isEchoEnabled()
void reset() throws IOException
IOException
- streamShell getShell()
void writeToInputStream(String data)
void changeOutputStream(PrintStream output)
output
- streamCopyright © 2016 JBoss by Red Hat. All rights reserved.