| Modifier and Type | Field and Description |
|---|---|
private Console |
console |
private Shell |
shell |
| Constructor and Description |
|---|
ConsoleShell(Shell shell,
Console console) |
| 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.
|
java.io.PrintStream |
err()
Returns the
PrintStream associated with the std err |
private CursorPosition |
getActualCursor(int[] input) |
CursorPosition |
getCursor() |
TerminalSize |
getSize() |
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
|
java.io.PrintStream |
out()
Returns the
PrintStream associated with the std out |
void |
setCursor(CursorPosition position)
Set cursor position
|
public void clear()
throws java.io.IOException
Shellpublic java.io.PrintStream out()
ShellPrintStream associated with the std outpublic java.io.PrintStream err()
ShellPrintStream associated with the std errpublic AeshStandardStream in()
Shellpublic TerminalSize getSize()
public CursorPosition getCursor()
private CursorPosition getActualCursor(int[] input)
public void setCursor(CursorPosition position)
Shellpublic void moveCursor(int rows,
int columns)
ShellmoveCursor in interface Shellpublic boolean isMainBuffer()
isMainBuffer in interface Shellpublic void enableAlternateBuffer()
ShellenableAlternateBuffer in interface Shellpublic void enableMainBuffer()
ShellenableMainBuffer in interface Shell