Scrollable
, InputProvider
, ExtendedTerminal
, IOSafeExtendedTerminal
, IOSafeTerminal
, Terminal
, Closeable
, AutoCloseable
public static class IOSafeTerminalAdapter.Extended extends IOSafeTerminalAdapter implements IOSafeExtendedTerminal
IOSafeTerminalAdapter.Extended
Constructor | Description |
---|---|
Extended(ExtendedTerminal backend,
com.googlecode.lanterna.terminal.IOSafeTerminalAdapter.ExceptionHandler exceptionHandler) |
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 |
scrollLines(int firstLine,
int lastLine,
int distance) |
Scroll a range of lines of this Scrollable according to given distance.
|
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
|
bell, clearScreen, close, disableSGR, enableSGR, enquireTerminal, enterPrivateMode, exitPrivateMode, flush, getCursorPosition, getTerminalSize, pollInput, putCharacter, readInput, resetColorAndSGR, setBackgroundColor, setCursorPosition, setCursorPosition, setCursorVisible, setForegroundColor
addResizeListener, bell, clearScreen, close, createDoNothingOnExceptionAdapter, createDoNothingOnExceptionAdapter, createRuntimeExceptionConvertingAdapter, createRuntimeExceptionConvertingAdapter, disableSGR, enableSGR, enquireTerminal, enterPrivateMode, exitPrivateMode, flush, getCursorPosition, getTerminalSize, newTextGraphics, pollInput, putCharacter, readInput, removeResizeListener, resetColorAndSGR, setBackgroundColor, setCursorPosition, setCursorPosition, setCursorVisible, setForegroundColor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addResizeListener, newTextGraphics, removeResizeListener
public Extended(ExtendedTerminal backend, com.googlecode.lanterna.terminal.IOSafeTerminalAdapter.ExceptionHandler exceptionHandler)
public void setTerminalSize(int columns, int rows)
ExtendedTerminal
setTerminalSize
in interface ExtendedTerminal
setTerminalSize
in interface IOSafeExtendedTerminal
columns
- New size (columns)rows
- New size (rows)public void setTitle(String title)
ExtendedTerminal
setTitle
in interface ExtendedTerminal
setTitle
in interface IOSafeExtendedTerminal
title
- Title to set on the terminalpublic void pushTitle()
ExtendedTerminal
pushTitle
in interface ExtendedTerminal
pushTitle
in interface IOSafeExtendedTerminal
public void popTitle()
ExtendedTerminal
popTitle
in interface ExtendedTerminal
popTitle
in interface IOSafeExtendedTerminal
public void iconify()
ExtendedTerminal
iconify
in interface ExtendedTerminal
iconify
in interface IOSafeExtendedTerminal
public void deiconify()
ExtendedTerminal
deiconify
in interface ExtendedTerminal
deiconify
in interface IOSafeExtendedTerminal
public void maximize()
ExtendedTerminal
maximize
in interface ExtendedTerminal
maximize
in interface IOSafeExtendedTerminal
public void unmaximize()
ExtendedTerminal
unmaximize
in interface ExtendedTerminal
unmaximize
in interface IOSafeExtendedTerminal
public void setMouseCaptureMode(MouseCaptureMode mouseCaptureMode)
ExtendedTerminal
setMouseCaptureMode
in interface ExtendedTerminal
setMouseCaptureMode
in interface IOSafeExtendedTerminal
mouseCaptureMode
- Which mouse events to capture, pass in null
to disable mouse input capturingpublic void scrollLines(int firstLine, int lastLine, int distance)
Scrollable
scrollLines
in interface IOSafeExtendedTerminal
scrollLines
in interface Scrollable
firstLine
- first line of the range to be scrolled (top line is 0)lastLine
- last (inclusive) line of the range to be scrolleddistance
- if > 0: move lines up, else if < 0: move lines down.Copyright © 2020. All rights reserved.