public class WindowsTerminal extends AbstractTerminal
Constructor and Description |
---|
WindowsTerminal() |
Modifier and Type | Method and Description |
---|---|
TerminalSize |
getSize() |
void |
init(InputStream inputStream,
OutputStream stdOut,
OutputStream stdErr)
Initialize the Terminal with which input/output stream it should use
|
boolean |
isEchoEnabled() |
int[] |
read(boolean readAhead)
Read from the input stream (char by char)
|
void |
reset()
Set it back to normal when we exit
|
void |
writeToStdErr(char err)
Write to the standard error stream
|
void |
writeToStdErr(char[] err)
Write to the standard error stream
|
void |
writeToStdErr(String err)
Write to the standard error stream
|
void |
writeToStdOut(char out)
Write to the standard output stream
|
void |
writeToStdOut(char[] out)
Write to the standard output stream
|
void |
writeToStdOut(String out)
Write to the standard output stream
|
clear, getCursor, moveCursor, setCursor, writeChar, writeChars
public void init(InputStream inputStream, OutputStream stdOut, OutputStream stdErr)
Terminal
inputStream
- inputstdOut
- standard outputstdErr
- error outputpublic int[] read(boolean readAhead) throws IOException
Terminal
IOException
public void writeToStdOut(String out) throws IOException
Terminal
out
- what goes into the streamIOException
- streampublic void writeToStdOut(char[] out) throws IOException
Terminal
out
- what goes into the streamIOException
- streampublic void writeToStdOut(char out) throws IOException
Terminal
out
- what goes into the streamIOException
- streampublic void writeToStdErr(String err) throws IOException
Terminal
err
- what goes into the streamIOException
- streampublic void writeToStdErr(char[] err) throws IOException
Terminal
err
- what goes into the streamIOException
- streampublic void writeToStdErr(char err) throws IOException
Terminal
err
- what goes into the streamIOException
- streampublic TerminalSize getSize()
public boolean isEchoEnabled()
public void reset() throws IOException
Terminal
IOException
- streamCopyright © 2014 JBoss by Red Hat. All rights reserved.