public abstract class AbstractTerminal extends Object implements Terminal, Shell
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, wait
changeOutputStream, getHeight, getWidth, hasInput, init, isEchoEnabled, read, reset, writeToInputStream
protected Settings settings
public CursorPosition getCursor()
public void setCursor(CursorPosition position)
Shell
public void moveCursor(int rows, int columns)
Shell
moveCursor
in interface Shell
public void clear()
Shell
public boolean isMainBuffer()
isMainBuffer
in interface Shell
public void enableAlternateBuffer()
Shell
enableAlternateBuffer
in interface Shell
public void enableMainBuffer()
Shell
enableMainBuffer
in interface Shell
public AeshStandardStream in()
Shell
Copyright © 2017 JBoss by Red Hat. All rights reserved.