public class WindowsTerminal extends AbstractTerminal
| Modifier and Type | Field and Description |
|---|---|
private ConsoleInputSession |
input |
private static java.util.logging.Logger |
LOGGER |
private TerminalSize |
size |
private java.io.PrintStream |
stdErr |
private java.io.PrintStream |
stdOut |
private static long |
TIMEOUT_PERIOD |
private long |
ttyPropsLastFetched |
settings| Constructor and Description |
|---|
WindowsTerminal() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeOutputStream(java.io.PrintStream output)
During runtime, change the output stream
|
void |
close() |
java.io.PrintStream |
err()
Returns the
PrintStream associated with the std err |
private int |
getHeight() |
TerminalSize |
getSize() |
private int |
getWidth() |
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() |
java.io.PrintStream |
out()
Returns the
PrintStream associated with the std out |
private boolean |
propertiesTimedOut() |
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) |
clear, enableAlternateBuffer, enableMainBuffer, getCursor, getShell, in, isMainBuffer, moveCursor, setCursorprivate java.io.PrintStream stdOut
private java.io.PrintStream stdErr
private TerminalSize size
private ConsoleInputSession input
private long ttyPropsLastFetched
private static long TIMEOUT_PERIOD
private static final java.util.logging.Logger LOGGER
public void init(Settings settings)
Terminalpublic int[] read()
throws java.io.IOException
Terminaljava.io.IOExceptionpublic boolean hasInput()
Terminalprivate int getHeight()
private int getWidth()
public TerminalSize getSize()
public boolean isEchoEnabled()
public void reset()
throws java.io.IOException
Terminaljava.io.IOException - streampublic void writeToInputStream(java.lang.String data)
public void changeOutputStream(java.io.PrintStream output)
Terminaloutput - streampublic void close()
throws java.io.IOException
java.io.IOExceptionprivate boolean propertiesTimedOut()
public java.io.PrintStream err()
ShellPrintStream associated with the std errpublic java.io.PrintStream out()
ShellPrintStream associated with the std out