public class DumbTerminal extends AbstractTerminal
| Constructor and Description |
|---|
DumbTerminal(InputStream in,
OutputStream out) |
DumbTerminal(String name,
String type,
InputStream in,
OutputStream out,
Charset encoding) |
DumbTerminal(org.graalvm.shadowed.org.jline.terminal.spi.TerminalProvider provider,
org.graalvm.shadowed.org.jline.terminal.spi.SystemStream systemStream,
String name,
String type,
InputStream in,
OutputStream out,
Charset encoding,
org.graalvm.shadowed.org.jline.terminal.Terminal.SignalHandler signalHandler) |
| Modifier and Type | Method and Description |
|---|---|
org.graalvm.shadowed.org.jline.terminal.Attributes |
getAttributes()
Returns the terminal attributes.
|
org.graalvm.shadowed.org.jline.terminal.spi.TerminalProvider |
getProvider()
Returns the
TerminalProvider that created this terminal
or null if the terminal was created with no provider. |
org.graalvm.shadowed.org.jline.terminal.Size |
getSize()
Retrieve the size of the visible window
|
org.graalvm.shadowed.org.jline.terminal.spi.SystemStream |
getSystemStream()
The underlying system stream, may be
SystemStream.Output,
SystemStream.Error, or null if this terminal is not bound
to a system stream. |
InputStream |
input()
Retrieve the input stream for this terminal.
|
OutputStream |
output()
Retrieve the output stream for this terminal.
|
NonBlockingReader |
reader()
Retrieve the
Reader for this terminal. |
void |
setAttributes(org.graalvm.shadowed.org.jline.terminal.Attributes attr)
Set the terminal attributes.
|
void |
setSize(org.graalvm.shadowed.org.jline.terminal.Size sz) |
PrintWriter |
writer()
Retrieve the
Writer for this terminal. |
canPauseResume, checkInterrupted, close, doClose, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getCursorPosition, getKind, getName, getNumericCapability, getPalette, getStatus, getStatus, getStringCapability, getType, handle, hasFocusSupport, hasMouseSupport, parseInfoCmp, pause, pause, paused, puts, raise, readMouseEvent, readMouseEvent, resume, setOnClose, toString, trackFocus, trackMousepublic DumbTerminal(InputStream in, OutputStream out) throws IOException
IOExceptionpublic DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding) throws IOException
IOExceptionpublic DumbTerminal(org.graalvm.shadowed.org.jline.terminal.spi.TerminalProvider provider,
org.graalvm.shadowed.org.jline.terminal.spi.SystemStream systemStream,
String name,
String type,
InputStream in,
OutputStream out,
Charset encoding,
org.graalvm.shadowed.org.jline.terminal.Terminal.SignalHandler signalHandler)
throws IOException
IOExceptionpublic NonBlockingReader reader()
org.graalvm.shadowed.org.jline.terminal.TerminalReader for this terminal.
This is the standard way to read input from this terminal.
The reader is non blocking.public PrintWriter writer()
org.graalvm.shadowed.org.jline.terminal.TerminalWriter for this terminal.
This is the standard way to write to this terminal.public InputStream input()
org.graalvm.shadowed.org.jline.terminal.TerminalTerminal.reader() instead.Terminal.reader()public OutputStream output()
org.graalvm.shadowed.org.jline.terminal.TerminalTerminal.writer() instead.Terminal.writer()public org.graalvm.shadowed.org.jline.terminal.Attributes getAttributes()
org.graalvm.shadowed.org.jline.terminal.TerminalTerminal.setAttributes(Attributes).public void setAttributes(org.graalvm.shadowed.org.jline.terminal.Attributes attr)
org.graalvm.shadowed.org.jline.terminal.Terminalattr - the new attributespublic org.graalvm.shadowed.org.jline.terminal.Size getSize()
org.graalvm.shadowed.org.jline.terminal.TerminalTerminal.getBufferSize()public void setSize(org.graalvm.shadowed.org.jline.terminal.Size sz)
public org.graalvm.shadowed.org.jline.terminal.spi.TerminalProvider getProvider()
org.graalvm.shadowed.org.jline.terminal.spi.TerminalExtTerminalProvider that created this terminal
or null if the terminal was created with no provider.public org.graalvm.shadowed.org.jline.terminal.spi.SystemStream getSystemStream()
org.graalvm.shadowed.org.jline.terminal.spi.TerminalExtSystemStream.Output,
SystemStream.Error, or null if this terminal is not bound
to a system stream.