public abstract class AbstractTerminal extends java.lang.Object implements Terminal, Shell
| Modifier and Type | Field and Description |
|---|---|
private java.util.logging.Logger |
logger |
private boolean |
mainBuffer |
protected Settings |
settings |
| Constructor and Description |
|---|
AbstractTerminal(java.util.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clears the screen
|
void |
enableAlternateBuffer()
If not alternate buffer is enabled this will enable it
|
void |
enableMainBuffer()
If not main buffer is enabled this will enable it.
|
CursorPosition |
getCursor()
Return the row position if we use a ansi terminal
Send a terminal: '
|
Shell |
getShell() |
AeshStandardStream |
in()
Get the possible input stream
|
boolean |
isMainBuffer() |
void |
moveCursor(int rows,
int columns)
Move the cursor relative to the current position
Will not move outside of TerminalSize boundaries
|
void |
setCursor(CursorPosition position)
Set cursor position
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeOutputStream, hasInput, init, isEchoEnabled, read, reset, writeToInputStreamprivate final java.util.logging.Logger logger
protected Settings settings
private boolean mainBuffer
public CursorPosition getCursor()
public void setCursor(CursorPosition position)
Shellpublic void moveCursor(int rows,
int columns)
ShellmoveCursor in interface Shellpublic void clear()
Shellpublic boolean isMainBuffer()
isMainBuffer in interface Shellpublic void enableAlternateBuffer()
ShellenableAlternateBuffer in interface Shellpublic void enableMainBuffer()
ShellenableMainBuffer in interface Shellpublic AeshStandardStream in()
Shell