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(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.Size |
getSize()
Retrieve the size of the visible window
|
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, trackFocus, trackMouse
public DumbTerminal(InputStream in, OutputStream out) throws IOException
IOException
public DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding) throws IOException
IOException
public DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding, org.graalvm.shadowed.org.jline.terminal.Terminal.SignalHandler signalHandler) throws IOException
IOException
public NonBlockingReader reader()
org.graalvm.shadowed.org.jline.terminal.Terminal
Reader
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.Terminal
Writer
for this terminal.
This is the standard way to write to this terminal.public InputStream input()
org.graalvm.shadowed.org.jline.terminal.Terminal
Terminal.reader()
instead.Terminal.reader()
public OutputStream output()
org.graalvm.shadowed.org.jline.terminal.Terminal
Terminal.writer()
instead.Terminal.writer()
public org.graalvm.shadowed.org.jline.terminal.Attributes getAttributes()
org.graalvm.shadowed.org.jline.terminal.Terminal
Terminal.setAttributes(Attributes)
.public void setAttributes(org.graalvm.shadowed.org.jline.terminal.Attributes attr)
org.graalvm.shadowed.org.jline.terminal.Terminal
attr
- the new attributespublic org.graalvm.shadowed.org.jline.terminal.Size getSize()
org.graalvm.shadowed.org.jline.terminal.Terminal
Terminal.getBufferSize()
public void setSize(org.graalvm.shadowed.org.jline.terminal.Size sz)