| Modifier and Type | Field and Description |
|---|---|
| protected final Set | |
| protected final Charset | |
| protected final Map | |
| protected final Map | |
| private MouseEvent | |
| protected final String | |
| protected Runnable | |
| protected final ColorPalette | |
| protected Status | |
| protected final Map | |
| protected final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected void | |
| public final void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| protected void | |
| public boolean | |
| public boolean | |
| protected void | |
| public Charset | encoding()
Implements jdk. Returns the |
| public Attributes | |
| public void | flush()
Implements jdk. Flushes this stream by writing any buffered output to the underlying stream. |
| public boolean | getBooleanCapability(InfoCmp.
Implements jdk.
|
| public Cursor | getCursorPosition(IntConsumer discarded)
Implements jdk. Query the terminal to report the cursor position. |
| public String | |
| public String | |
| public Integer | getNumericCapability(InfoCmp.
Implements jdk.
|
| public ColorPalette | |
| public Status | |
| public Status | |
| public String | getStringCapability(InfoCmp.
Implements jdk.
|
| public String | |
| public Terminal. | handle(Terminal.
Implements jdk. Registers a handler for the given |
| public boolean | hasFocusSupport()
Implements jdk. Returns |
| public boolean | hasMouseSupport()
Implements jdk. Returns |
| protected void | |
| public void | |
| public void | pause(boolean wait)
Implements jdk. Stop reading the input stream and optionally wait for the underlying threads to finish. |
| public boolean | paused()
Implements jdk. Check whether the terminal is currently reading the input stream or not. |
| public boolean | puts(InfoCmp.
Implements jdk.
|
| public void | raise(Terminal.
Implements jdk. Raise the specific signal. |
| public MouseEvent | readMouseEvent()
Implements jdk. Read a MouseEvent from the terminal input stream. |
| public MouseEvent | readMouseEvent(IntSupplier reader)
Implements jdk. Read a MouseEvent from the given input stream. |
| public void | resume()
Implements jdk. Resume reading the input stream. |
| public void | |
| public String | |
| public boolean | trackFocus(boolean tracking)
Implements jdk. Enable or disable focus tracking mode. |
| public boolean | trackMouse(Terminal.
Implements jdk. Change the mouse tracking mouse. |
| bools | back to summary |
|---|---|
| protected final Set<InfoCmp. | |
| encoding | back to summary |
|---|---|
| protected final Charset encoding | |
| handlers | back to summary |
|---|---|
| protected final Map<Terminal. | |
| ints | back to summary |
|---|---|
| protected final Map<InfoCmp. | |
| lastMouseEvent | back to summary |
|---|---|
| private MouseEvent lastMouseEvent | |
| name | back to summary |
|---|---|
| protected final String name | |
| onClose | back to summary |
|---|---|
| protected Runnable onClose | |
| palette | back to summary |
|---|---|
| protected final ColorPalette palette | |
| status | back to summary |
|---|---|
| protected Status status | |
| strings | back to summary |
|---|---|
| protected final Map<InfoCmp. | |
| type | back to summary |
|---|---|
| protected final String type | |
| AbstractTerminal | back to summary |
|---|---|
| public AbstractTerminal(String name, String type) throws IOException | |
| AbstractTerminal | back to summary |
|---|---|
public AbstractTerminal(String name, String type, Charset encoding, Terminal.
| |
| canPauseResume | back to summary |
|---|---|
| public boolean canPauseResume() Implements jdk. Doc from jdk. Whether this terminal supports
| |
| checkInterrupted | back to summary |
|---|---|
| protected void checkInterrupted() throws InterruptedIOException | |
| close | back to summary |
|---|---|
| public final void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| doClose | back to summary |
|---|---|
| protected void doClose() throws IOException | |
| echo | back to summary |
|---|---|
| public boolean echo() Implements jdk. | |
| echo | back to summary |
|---|---|
| public boolean echo(boolean echo) Implements jdk. | |
| echoSignal | back to summary |
|---|---|
| protected void echoSignal(Terminal. | |
| encoding | back to summary |
|---|---|
| public Charset encoding() Implements jdk. Doc from jdk. Returns the
| |
| enterRawMode | back to summary |
|---|---|
| public Attributes enterRawMode() Implements jdk. | |
| flush | back to summary |
|---|---|
| public void flush() Implements jdk. Doc from java. Flushes this stream by writing any buffered output to the underlying stream. | |
| getBooleanCapability | back to summary |
|---|---|
| public boolean getBooleanCapability(InfoCmp. Implements jdk. | |
| getCursorPosition | back to summary |
|---|---|
| public Cursor getCursorPosition(IntConsumer discarded) Implements jdk. Doc from jdk. Query the terminal to report the cursor position.
As the response is read from the input stream, some
characters may be read before the cursor position is actually
read. Those characters can be given back using
| |
| getKind | back to summary |
|---|---|
| public String getKind() | |
| getName | back to summary |
|---|---|
| public String getName() Implements jdk. | |
| getNumericCapability | back to summary |
|---|---|
| public Integer getNumericCapability(InfoCmp. Implements jdk. | |
| getPalette | back to summary |
|---|---|
| public ColorPalette getPalette() Implements jdk. Doc from jdk. Color support
| |
| getStatus | back to summary |
|---|---|
| public Status getStatus() | |
| getStatus | back to summary |
|---|---|
| public Status getStatus(boolean create) | |
| getStringCapability | back to summary |
|---|---|
| public String getStringCapability(InfoCmp. Implements jdk. | |
| getType | back to summary |
|---|---|
| public String getType() Implements jdk. | |
| handle | back to summary |
|---|---|
| public Terminal. Implements jdk. Doc from jdk. Registers a handler for the given
Note that the JVM does not easily allow catching the | |
| hasFocusSupport | back to summary |
|---|---|
| public boolean hasFocusSupport() Implements jdk. Doc from jdk. Returns
| |
| hasMouseSupport | back to summary |
|---|---|
| public boolean hasMouseSupport() Implements jdk. Doc from jdk. Returns
| |
| parseInfoCmp | back to summary |
|---|---|
| protected void parseInfoCmp() | |
| pause | back to summary |
|---|---|
| public void pause() Implements jdk. Doc from jdk. Stop reading the input stream.
| |
| pause | back to summary |
|---|---|
| public void pause(boolean wait) throws InterruptedException Implements jdk. Doc from jdk. Stop reading the input stream and optionally wait for the underlying threads to finish.
| |
| paused | back to summary |
|---|---|
| public boolean paused() Implements jdk. Doc from jdk. Check whether the terminal is currently reading the input stream or not. In order to process signal as quickly as possible, the terminal need to read the input stream and buffer it internally so that it can detect specific characters in the input stream (Ctrl+C, Ctrl+D, etc...) and raise the appropriate signals. However, there are some cases where this processing should be disabled, for example when handing the terminal control to a subprocess.
| |
| puts | back to summary |
|---|---|
| public boolean puts(InfoCmp. Implements jdk. | |
| raise | back to summary |
|---|---|
| public void raise(Terminal. Implements jdk. Doc from jdk. Raise the specific signal.
This is not method usually called by non system terminals.
When accessing a terminal through a SSH or Telnet connection, signals may be
conveyed by the protocol and thus need to be raised when reaching the terminal code.
The terminals do that automatically when the terminal input stream has a character
mapped to | |
| readMouseEvent | back to summary |
|---|---|
| public MouseEvent readMouseEvent() Implements jdk. Doc from jdk. Read a MouseEvent from the terminal input stream.
Such an event must have been detected by scanning the terminal's
| |
| readMouseEvent | back to summary |
|---|---|
| public MouseEvent readMouseEvent(IntSupplier reader) Implements jdk. Doc from jdk. Read a MouseEvent from the given input stream.
| |
| resume | back to summary |
|---|---|
| public void resume() Implements jdk. Doc from jdk. Resume reading the input stream.
| |
| setOnClose | back to summary |
|---|---|
| public void setOnClose(Runnable onClose) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| trackFocus | back to summary |
|---|---|
| public boolean trackFocus(boolean tracking) Implements jdk. Doc from jdk. Enable or disable focus tracking mode. When focus tracking has been activated, each time the terminal grabs the focus, the string "\33[I" will be sent to the input stream and each time the focus is lost, the string "\33[O" will be sent to the input stream.
| |
| trackMouse | back to summary |
|---|---|
| public boolean trackMouse(Terminal. Implements jdk. Doc from jdk. Change the mouse tracking mouse.
To start mouse tracking, this method must be called with a valid mouse tracking mode.
Mouse events will be reported by writing the
| |