Closeable
, Flushable
, AutoCloseable
, Terminal
PosixPtyTerminal
, PosixSysTerminal
public abstract class AbstractPosixTerminal extends AbstractTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler
Modifier and Type | Field | Description |
---|---|---|
protected Attributes |
originalAttributes |
|
protected Pty |
pty |
bools, encoding, handlers, ints, name, onClose, status, strings, type
TYPE_DUMB, TYPE_DUMB_COLOR
Constructor | Description |
---|---|
AbstractPosixTerminal(String name,
String type,
Pty pty) |
|
AbstractPosixTerminal(String name,
String type,
Pty pty,
Charset encoding,
Terminal.SignalHandler signalHandler) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
doClose() |
|
Attributes |
getAttributes() |
|
Cursor |
getCursorPosition(IntConsumer discarded) |
Query the terminal to report the cursor position.
|
Pty |
getPty() |
|
Size |
getSize() |
Retrieve the size of the visible window
|
void |
setAttributes(Attributes attr) |
|
void |
setSize(Size size) |
canPauseResume, checkInterrupted, close, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getStatus, getStatus, getStringCapability, getType, handle, hasFocusSupport, hasMouseSupport, parseInfoCmp, pause, pause, paused, puts, raise, readMouseEvent, readMouseEvent, resume, setOnClose, trackFocus, trackMouse
protected final Pty pty
protected final Attributes originalAttributes
public AbstractPosixTerminal(String name, String type, Pty pty) throws IOException
IOException
public AbstractPosixTerminal(String name, String type, Pty pty, Charset encoding, Terminal.SignalHandler signalHandler) throws IOException
IOException
public Pty getPty()
public Attributes getAttributes()
public void setAttributes(Attributes attr)
public Size getSize()
Terminal
Terminal.getBufferSize()
public void setSize(Size size)
protected void doClose() throws IOException
doClose
in class AbstractTerminal
IOException
public Cursor getCursorPosition(IntConsumer discarded)
Terminal
org.jline.keymap.BindingReader#runMacro(String)
getCursorPosition
in interface Terminal
getCursorPosition
in class AbstractTerminal
discarded
- a consumer receiving discarded charactersnull
if cursor position reporting
is not supported or a valid cursor positionCopyright © 2020. All rights reserved.