public class DumbTerminal extends AbstractTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandlerbools, encoding, handlers, ints, name, status, strings, typeTYPE_DUMB, TYPE_DUMB_COLOR| 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,
Terminal.SignalHandler signalHandler) |
| Modifier and Type | Method and 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, 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, trackFocus, trackMouseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBufferSize, getHeight, getWidthpublic DumbTerminal(InputStream in, OutputStream out) throws IOException
IOExceptionpublic DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding) throws IOException
IOExceptionpublic DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding, Terminal.SignalHandler signalHandler) throws IOException
IOExceptionpublic NonBlockingReader reader()
TerminalReader for this terminal.
This is the standard way to read input from this terminal.
The reader is non blocking.public PrintWriter writer()
TerminalWriter for this terminal.
This is the standard way to write to this terminal.public InputStream input()
TerminalTerminal.reader() instead.Terminal.reader()public OutputStream output()
TerminalTerminal.writer() instead.Terminal.writer()public Attributes getAttributes()
public void setAttributes(Attributes attr)
public Size getSize()
TerminalTerminal.getBufferSize()public void setSize(Size sz)
Copyright © 2019. All rights reserved.