| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| protected final Attributes | |
| pack-priv static final int | |
| protected final ShutdownHooks. | |
| private volatile boolean | |
| pack-priv static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| public static final int | |
| protected static final int | |
| protected boolean | |
| protected final Console | |
| protected final InputStream | |
| pack-priv static final int | |
| pack-priv static final int | |
| protected final Object | |
| protected final Map | |
| pack-priv static final int | |
| protected final int | |
| protected final int | |
| protected final Console | |
| protected final OutputStream | |
| protected boolean | |
| private final TerminalProvider | |
| protected Thread | |
| protected final NonBlockingReader | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| protected boolean | |
| protected final Writer | |
| private final SystemStream | |
| protected Terminal. | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final int | |
| protected final PrintWriter |
| Access | Constructor and Description |
|---|---|
| public | AbstractWindowsTerminal(TerminalProvider provider, SystemStream systemStream, Writer writer, String name, String type, Charset encoding, boolean nativeSignals, Terminal.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected int | |
| protected void | |
| public Attributes | getAttributes()
Implements jdk. Returns the terminal attributes. |
| protected abstract int | |
| protected String | |
| public TerminalProvider | getProvider()
Implements jdk. Returns the |
| protected String | |
| public SystemStream | getSystemStream()
Implements jdk. The underlying system stream, may be |
| public Terminal. | handle(Terminal.
Overrides jdk. Implements jdk. Registers a handler for the given |
| public boolean | hasFocusSupport()
Overrides jdk. Implements jdk. Returns |
| public InputStream | input()
Implements jdk. Retrieve the input stream for this terminal. |
| public OutputStream | output()
Implements jdk. Retrieve the output stream for this terminal. |
| public void | pause()
Overrides jdk. Implements jdk. Stop reading the input stream. |
| public void | pause(boolean wait)
Overrides jdk. Implements jdk. Stop reading the input stream and optionally wait for the underlying threads to finish. |
| public boolean | paused()
Overrides jdk. Implements jdk. Check whether the terminal is currently reading the input stream or not. |
| protected abstract boolean | Returns: true if new input was generated from the eventRead a single input event from the input buffer and process it. |
| public void | |
| protected void | processKeyEvent(final boolean isKeyDown, final short virtualKeyCode, char ch, final int controlKeyState)
|
| protected void | |
| public NonBlockingReader | reader()
Implements jdk. Retrieve the |
| public void | resume()
Overrides jdk. Implements jdk. Resume reading the input stream. |
| public void | setAttributes(Attributes attr)
Implements jdk. Set the terminal attributes. |
| protected abstract void | |
| public void | |
| public boolean | trackFocus(boolean tracking)
Overrides jdk. Implements jdk. Enable or disable focus tracking mode. |
| public boolean | trackMouse(Terminal.
Overrides jdk. Implements jdk. Change the mouse tracking mouse. |
| protected void | |
| public PrintWriter | writer()
Implements jdk. Retrieve the |
| ALT_FLAG | back to summary |
|---|---|
| pack-priv static final int ALT_FLAG | |
| attributes | back to summary |
|---|---|
| protected final Attributes attributes | |
| CAPSLOCK_ON | back to summary |
|---|---|
| pack-priv static final int CAPSLOCK_ON | |
| closer | back to summary |
|---|---|
| protected final ShutdownHooks. | |
| closing | back to summary |
|---|---|
| private volatile boolean closing | |
| CTRL_FLAG | back to summary |
|---|---|
| pack-priv static final int CTRL_FLAG | |
| ENABLE_ECHO_INPUT | back to summary |
|---|---|
| protected static final int ENABLE_ECHO_INPUT | |
| ENABLE_EXTENDED_FLAGS | back to summary |
|---|---|
| protected static final int ENABLE_EXTENDED_FLAGS | |
| ENABLE_INSERT_MODE | back to summary |
|---|---|
| protected static final int ENABLE_INSERT_MODE | |
| ENABLE_LINE_INPUT | back to summary |
|---|---|
| protected static final int ENABLE_LINE_INPUT | |
| ENABLE_MOUSE_INPUT | back to summary |
|---|---|
| protected static final int ENABLE_MOUSE_INPUT | |
| ENABLE_PROCESSED_INPUT | back to summary |
|---|---|
| protected static final int ENABLE_PROCESSED_INPUT | |
| ENABLE_QUICK_EDIT_MODE | back to summary |
|---|---|
| protected static final int ENABLE_QUICK_EDIT_MODE | |
| ENABLE_VIRTUAL_TERMINAL_PROCESSING | back to summary |
|---|---|
| public static final int ENABLE_VIRTUAL_TERMINAL_PROCESSING | |
| ENABLE_WINDOW_INPUT | back to summary |
|---|---|
| protected static final int ENABLE_WINDOW_INPUT | |
| focusTracking | back to summary |
|---|---|
| protected boolean focusTracking | |
| inConsole | back to summary |
|---|---|
| protected final Console inConsole | |
| input | back to summary |
|---|---|
| protected final InputStream input | |
| LEFT_ALT_PRESSED | back to summary |
|---|---|
| pack-priv static final int LEFT_ALT_PRESSED | |
| LEFT_CTRL_PRESSED | back to summary |
|---|---|
| pack-priv static final int LEFT_CTRL_PRESSED | |
| lock | back to summary |
|---|---|
| protected final Object lock | |
| nativeHandlers | back to summary |
|---|---|
| protected final Map<Terminal. | |
| NUMLOCK_ON | back to summary |
|---|---|
| pack-priv static final int NUMLOCK_ON | |
| originalInConsoleMode | back to summary |
|---|---|
| protected final int originalInConsoleMode | |
| originalOutConsoleMode | back to summary |
|---|---|
| protected final int originalOutConsoleMode | |
| outConsole | back to summary |
|---|---|
| protected final Console outConsole | |
| output | back to summary |
|---|---|
| protected final OutputStream output | |
| paused | back to summary |
|---|---|
| protected boolean paused | |
| provider | back to summary |
|---|---|
| private final TerminalProvider provider | |
| pump | back to summary |
|---|---|
| protected Thread pump | |
| reader | back to summary |
|---|---|
| protected final NonBlockingReader reader | |
| RIGHT_ALT_PRESSED | back to summary |
|---|---|
| pack-priv static final int RIGHT_ALT_PRESSED | |
| RIGHT_CTRL_PRESSED | back to summary |
|---|---|
| pack-priv static final int RIGHT_CTRL_PRESSED | |
| SCROLLLOCK_ON | back to summary |
|---|---|
| pack-priv static final int SCROLLLOCK_ON | |
| SHIFT_FLAG | back to summary |
|---|---|
| pack-priv static final int SHIFT_FLAG | |
| SHIFT_PRESSED | back to summary |
|---|---|
| pack-priv static final int SHIFT_PRESSED | |
| skipNextLf | back to summary |
|---|---|
| protected boolean skipNextLf | |
| slaveInputPipe | back to summary |
|---|---|
| protected final Writer slaveInputPipe | |
| systemStream | back to summary |
|---|---|
| private final SystemStream systemStream | |
| tracking | back to summary |
|---|---|
| protected Terminal. | |
| TYPE_WINDOWS | back to summary |
|---|---|
| public static final String TYPE_WINDOWS | |
| TYPE_WINDOWS_256_COLOR | back to summary |
|---|---|
| public static final String TYPE_WINDOWS_256_COLOR | |
| TYPE_WINDOWS_CONEMU | back to summary |
|---|---|
| public static final String TYPE_WINDOWS_CONEMU | |
| TYPE_WINDOWS_VTP | back to summary |
|---|---|
| public static final String TYPE_WINDOWS_VTP | |
| UTF8_CODE_PAGE | back to summary |
|---|---|
| private static final int UTF8_CODE_PAGE | |
| writer | back to summary |
|---|---|
| protected final PrintWriter writer | |
| AbstractWindowsTerminal | back to summary |
|---|---|
public AbstractWindowsTerminal(TerminalProvider provider, SystemStream systemStream, Writer writer, String name, String type, Charset encoding, boolean nativeSignals, Terminal.
| |
| canPauseResume | back to summary |
|---|---|
| public boolean canPauseResume() Overrides jdk. Implements jdk. Doc from jdk. Whether this terminal supports
| |
| ctrl | back to summary |
|---|---|
| protected int ctrl(char key) | |
| doClose | back to summary |
|---|---|
| protected void doClose() throws IOException Overrides jdk. | |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes() Implements jdk. Doc from jdk. Returns the terminal attributes.
The returned object can be safely modified
further used in a call to | |
| getConsoleMode | back to summary |
|---|---|
| protected abstract int getConsoleMode(Console console) | |
| getEscapeSequence | back to summary |
|---|---|
| protected String getEscapeSequence(short keyCode, int keyState) | |
| getProvider | back to summary |
|---|---|
| public TerminalProvider getProvider() Implements jdk. Doc from jdk. Returns the
| |
| getRawSequence | back to summary |
|---|---|
| protected String getRawSequence(InfoCmp. | |
| getSystemStream | back to summary |
|---|---|
| public SystemStream getSystemStream() Implements jdk. Doc from jdk. The underlying system stream, may be
| |
| handle | back to summary |
|---|---|
| public Terminal. Overrides jdk. 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() Overrides jdk. Implements jdk. Doc from jdk. Returns
| |
| input | back to summary |
|---|---|
| public InputStream input() Implements jdk. Doc from jdk. Retrieve the input stream for this terminal.
In some rare cases, there may be a need to access the
terminal input stream directly. In the usual cases,
use the
| |
| output | back to summary |
|---|---|
| public OutputStream output() Implements jdk. Doc from jdk. Retrieve the output stream for this terminal.
In some rare cases, there may be a need to access the
terminal output stream directly. In the usual cases,
use the
| |
| pause | back to summary |
|---|---|
| public void pause() Overrides jdk. Implements jdk. Doc from jdk. Stop reading the input stream.
| |
| pause | back to summary |
|---|---|
| public void pause(boolean wait) throws InterruptedException Overrides jdk. 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() Overrides jdk. 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.
| |
| processConsoleInput | back to summary |
|---|---|
| protected abstract boolean processConsoleInput() throws IOException Read a single input event from the input buffer and process it.
| |
| processInputChar | back to summary |
|---|---|
| public void processInputChar(char c) throws IOException | |
| processKeyEvent | back to summary |
|---|---|
| protected void processKeyEvent(final boolean isKeyDown, final short virtualKeyCode, char ch, final int controlKeyState) throws IOException | |
| pump | back to summary |
|---|---|
| protected void pump() | |
| reader | back to summary |
|---|---|
| public NonBlockingReader reader() Implements jdk. Doc from jdk. Retrieve the | |
| resume | back to summary |
|---|---|
| public void resume() Overrides jdk. Implements jdk. Doc from jdk. Resume reading the input stream.
| |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(Attributes attr) Implements jdk. Doc from jdk. Set the terminal attributes. The terminal will perform a copy of the given attributes. | |
| setConsoleMode | back to summary |
|---|---|
| protected abstract void setConsoleMode(Console console, int mode) | |
| setSize | back to summary |
|---|---|
| public void setSize(Size size) Implements jdk. | |
| trackFocus | back to summary |
|---|---|
| public boolean trackFocus(boolean tracking) Overrides jdk. 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. Overrides jdk. 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
| |
| updateConsoleMode | back to summary |
|---|---|
| protected void updateConsoleMode() | |
| writer | back to summary |
|---|---|
| public PrintWriter writer() Implements jdk. Doc from jdk. Retrieve the | |