AutoCloseable
, Closeable
, InputProvider
, Scrollable
, Terminal
IOSafeExtendedTerminal
ANSITerminal
, CygwinTerminal
, IOSafeTerminalAdapter.Extended
, TelnetTerminal
, UnixLikeTerminal
, UnixLikeTTYTerminal
, UnixTerminal
public interface ExtendedTerminal extends Terminal, Scrollable
Modifier and Type | Method | Description |
---|---|---|
void |
deiconify() |
De-iconifies the terminal, which likely means restoring it from minimized state with most window managers
|
void |
iconify() |
Iconifies the terminal, this likely means minimizing the window with most window managers
|
void |
maximize() |
Maximizes the terminal, so that it takes up all available space
|
void |
popTitle() |
Replaces the terminal title with the top element from the title stack managed by the terminal (the element is
removed from the stack as expected)
|
void |
pushTitle() |
Saves the current window title on a stack managed internally by the terminal.
|
void |
setMouseCaptureMode(MouseCaptureMode mouseCaptureMode) |
Enabled or disables capturing of mouse event.
|
void |
setTerminalSize(int columns,
int rows) |
Attempts to resize the terminal through dtterm extensions "CSI 8 ; rows ; columns ; t".
|
void |
setTitle(String title) |
This methods sets the title of the terminal, which is normally only visible if you are running the application
in a terminal emulator in a graphical environment.
|
void |
unmaximize() |
Restores the terminal back to its previous size, after having been maximized
|
pollInput, readInput
scrollLines
addResizeListener, bell, clearScreen, close, disableSGR, enableSGR, enquireTerminal, enterPrivateMode, exitPrivateMode, flush, getCursorPosition, getTerminalSize, newTextGraphics, putCharacter, removeResizeListener, resetColorAndSGR, setBackgroundColor, setCursorPosition, setCursorPosition, setCursorVisible, setForegroundColor
void setTerminalSize(int columns, int rows) throws IOException
columns
- New size (columns)rows
- New size (rows)IOException
- If the was an underlying I/O errorvoid setTitle(String title) throws IOException
title
- Title to set on the terminalIOException
- If the was an underlying I/O errorvoid pushTitle() throws IOException
IOException
- If the was an underlying I/O errorvoid popTitle() throws IOException
IOException
- If the was an underlying I/O errorvoid iconify() throws IOException
IOException
- If the was an underlying I/O errorvoid deiconify() throws IOException
IOException
- If the was an underlying I/O errorvoid maximize() throws IOException
IOException
- If the was an underlying I/O errorvoid unmaximize() throws IOException
IOException
- If the was an underlying I/O errorvoid setMouseCaptureMode(MouseCaptureMode mouseCaptureMode) throws IOException
mouseCaptureMode
- Which mouse events to capture, pass in null
to disable mouse input capturingIOException
- If the was an underlying I/O errorCopyright © 2020. All rights reserved.