public abstract class AbstractPosixTerminal extends AbstractTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler| Modifier and Type | Field and Description |
|---|---|
protected Attributes |
originalAttributes |
protected Pty |
pty |
bools, encoding, handlers, ints, name, status, strings, typeTYPE_DUMB, TYPE_DUMB_COLOR| Constructor and Description |
|---|
AbstractPosixTerminal(String name,
String type,
Pty pty) |
AbstractPosixTerminal(String name,
String type,
Pty pty,
Charset encoding,
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) |
canPauseResume, checkInterrupted, 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, trackFocus, trackMouseprotected final Pty pty
protected final Attributes originalAttributes
public AbstractPosixTerminal(String name, String type, Pty pty) throws IOException
IOExceptionpublic AbstractPosixTerminal(String name, String type, Pty pty, Charset encoding, Terminal.SignalHandler signalHandler) throws IOException
IOExceptionpublic Pty getPty()
public Attributes getAttributes()
public void setAttributes(Attributes attr)
public Size getSize()
public void setSize(Size size)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AbstractTerminalIOExceptionpublic Cursor getCursorPosition(IntConsumer discarded)
Terminalorg.jline.keymap.BindingReader#runMacro(String)getCursorPosition in interface TerminalgetCursorPosition in class AbstractTerminaldiscarded - a consumer receiving discarded charactersnull if cursor position reporting
is not supported or a valid cursor positionCopyright © 2018. All rights reserved.