public abstract class AbstractPosixTerminal extends AbstractTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler
Modifier and Type | Field and Description |
---|---|
protected Attributes |
originalAttributes |
protected Pty |
pty |
Constructor and Description |
---|
AbstractPosixTerminal(String name,
String type,
Pty pty) |
AbstractPosixTerminal(String name,
String type,
Pty pty,
Terminal.SignalHandler signalHandler) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Attributes |
getAttributes() |
Cursor |
getCursorPosition(IntConsumer discarded)
Query the terminal to report the cursor position.
|
Pty |
getPty() |
Size |
getSize() |
void |
setAttributes(Attributes attr) |
void |
setSize(Size size) |
echo, echo, echoSignal, enterRawMode, flush, getBooleanCapability, getName, getNumericCapability, getStringCapability, getType, handle, handleDefaultSignal, hasMouseSupport, parseInfoCmp, puts, raise, readMouseEvent, 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, Terminal.SignalHandler signalHandler) throws IOException
IOException
public Pty getPty()
public Attributes getAttributes()
public void setAttributes(Attributes attr)
public Size getSize()
public void setSize(Size size)
public void close() throws IOException
IOException
public Cursor getCursorPosition(IntConsumer discarded)
Terminal
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 © 2018. All rights reserved.