Closeable
, Flushable
, AutoCloseable
, Terminal
public class DumbTerminal extends AbstractTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler
bools, encoding, handlers, ints, name, onClose, status, strings, type
TYPE_DUMB, TYPE_DUMB_COLOR
Constructor | 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,
Terminal.SignalHandler signalHandler) |
Modifier and Type | Method | Description |
---|---|---|
Attributes |
getAttributes() |
|
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(Attributes attr) |
|
void |
setSize(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, getStatus, getStatus, getStringCapability, getType, handle, hasFocusSupport, hasMouseSupport, parseInfoCmp, pause, pause, paused, puts, raise, readMouseEvent, readMouseEvent, resume, setOnClose, trackFocus, trackMouse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBufferSize, getHeight, getWidth
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, Terminal.SignalHandler signalHandler) throws IOException
IOException
public NonBlockingReader reader()
Terminal
Reader
for this terminal.
This is the standard way to read input from this terminal.
The reader is non blocking.public PrintWriter writer()
Terminal
Writer
for this terminal.
This is the standard way to write to this terminal.public InputStream input()
Terminal
Terminal.reader()
instead.Terminal.reader()
public OutputStream output()
Terminal
Terminal.writer()
instead.Terminal.writer()
public Attributes getAttributes()
public void setAttributes(Attributes attr)
public Size getSize()
Terminal
Terminal.getBufferSize()
public void setSize(Size sz)
Copyright © 2020. All rights reserved.