| Modifier and Type | Field and Description |
|---|---|
| private final Attributes | |
| private final NonBlockingInputStream | |
| private final OutputStream | |
| private final TerminalProvider | |
| private final NonBlockingReader | |
| private final Size | |
| private boolean | |
| private final SystemStream | |
| private final PrintWriter |
| Access | Constructor and Description |
|---|---|
| public | DumbTerminal(InputStream in, OutputStream out, Function<InputStream, InputStream> inputStreamWrapper)
|
| public | DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding, Function<InputStream, InputStream> inputStreamWrapper)
|
| public | DumbTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, InputStream in, OutputStream out, Charset encoding, Terminal.
|
| Modifier and Type | Method and Description |
|---|---|
| public Attributes | getAttributes()
Implements jdk. Returns the terminal attributes. |
| public TerminalProvider | getProvider()
Implements jdk. Returns the |
| public Size | getSize()
Implements jdk. Retrieve the size of the visible window |
| public SystemStream | getSystemStream()
Implements jdk. The underlying system stream, may be |
| public InputStream | input()
Implements jdk. Retrieve the input stream for this terminal. |
| public OutputStream | output()
Implements jdk. Retrieve the output stream for this terminal. |
| public NonBlockingReader | reader()
Implements jdk. Retrieve the |
| public void | setAttributes(Attributes attr)
Implements jdk. Set the terminal attributes. |
| public void | |
| public PrintWriter | writer()
Implements jdk. Retrieve the |
| attributes | back to summary |
|---|---|
| private final Attributes attributes | |
| input | back to summary |
|---|---|
| private final NonBlockingInputStream input | |
| output | back to summary |
|---|---|
| private final OutputStream output | |
| provider | back to summary |
|---|---|
| private final TerminalProvider provider | |
| reader | back to summary |
|---|---|
| private final NonBlockingReader reader | |
| size | back to summary |
|---|---|
| private final Size size | |
| skipNextLf | back to summary |
|---|---|
| private boolean skipNextLf | |
| systemStream | back to summary |
|---|---|
| private final SystemStream systemStream | |
| writer | back to summary |
|---|---|
| private final PrintWriter writer | |
| DumbTerminal | back to summary |
|---|---|
| public DumbTerminal(InputStream in, OutputStream out, Function<InputStream, InputStream> inputStreamWrapper) throws IOException | |
| DumbTerminal | back to summary |
|---|---|
| public DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding, Function<InputStream, InputStream> inputStreamWrapper) throws IOException | |
| DumbTerminal | back to summary |
|---|---|
public DumbTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, InputStream in, OutputStream out, Charset encoding, Terminal.
| |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes() Implements jdk. Doc from jdk. Returns the terminal attributes.
The returned object can be safely modified
further used in a call to | |
| getProvider | back to summary |
|---|---|
| public TerminalProvider getProvider() Implements jdk. Doc from jdk. Returns the
| |
| getSize | back to summary |
|---|---|
| public Size getSize() Implements jdk. Doc from jdk. Retrieve the size of the visible window | |
| getSystemStream | back to summary |
|---|---|
| public SystemStream getSystemStream() Implements jdk. Doc from jdk. The underlying system stream, may be
| |
| input | back to summary |
|---|---|
| public InputStream input() Implements jdk. Doc from jdk. Retrieve the input stream for this terminal.
In some rare cases, there may be a need to access the
terminal input stream directly. In the usual cases,
use the
| |
| output | back to summary |
|---|---|
| public OutputStream output() Implements jdk. Doc from jdk. Retrieve the output stream for this terminal.
In some rare cases, there may be a need to access the
terminal output stream directly. In the usual cases,
use the
| |
| reader | back to summary |
|---|---|
| public NonBlockingReader reader() Implements jdk. Doc from jdk. Retrieve the | |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(Attributes attr) Implements jdk. Doc from jdk. Set the terminal attributes. The terminal will perform a copy of the given attributes. | |
| setSize | back to summary |
|---|---|
| public void setSize(Size sz) Implements jdk. | |
| writer | back to summary |
|---|---|
| public PrintWriter writer() Implements jdk. Doc from jdk. Retrieve the | |