public class WindowsTerminal extends AbstractTerminal
settings
Constructor and Description |
---|
WindowsTerminal() |
Modifier and Type | Method and Description |
---|---|
void |
changeOutputStream(PrintStream output)
During runtime, change the output stream
|
void |
close() |
PrintStream |
err()
Returns the
PrintStream associated with the std err |
TerminalSize |
getSize() |
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() |
PrintStream |
out()
Returns the
PrintStream associated with the std out |
int[] |
read()
Read from the input stream (char by char)
|
void |
reset()
Set it back to normal when we exit
|
void |
writeToInputStream(String data) |
clear, enableAlternateBuffer, enableMainBuffer, getCursor, getShell, in, isMainBuffer, moveCursor, setCursor
public void init(Settings settings)
Terminal
public int[] read() throws IOException
Terminal
IOException
public boolean hasInput()
Terminal
public TerminalSize getSize()
public boolean isEchoEnabled()
public void reset() throws IOException
Terminal
IOException
- streampublic void writeToInputStream(String data)
public void changeOutputStream(PrintStream output)
Terminal
output
- streampublic void close() throws IOException
IOException
public PrintStream err()
Shell
PrintStream
associated with the std errpublic PrintStream out()
Shell
PrintStream
associated with the std outCopyright © 2020 JBoss, a division of Red Hat, Inc.. All Rights Reserved.