public abstract class AbstractTerminal extends Object implements Terminal
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clears the screen
|
CursorPosition |
getCursor()
Return the row position if we use a ansi terminal
Send a terminal: '
|
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
|
void |
writeChar(TerminalCharacter character)
Write a TerminalCharacter to std out
|
void |
writeChars(List<TerminalCharacter> chars)
Write a list of TerminalCharacters to std out
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSize, init, isEchoEnabled, read, reset, writeToStdErr, writeToStdErr, writeToStdErr, writeToStdOut, writeToStdOut, writeToStdOutpublic void writeChar(TerminalCharacter character) throws IOException
TerminalwriteChar in interface TerminalIOExceptionpublic void writeChars(List<TerminalCharacter> chars) throws IOException
TerminalwriteChars in interface TerminalIOExceptionpublic CursorPosition getCursor()
public void setCursor(CursorPosition position) throws IOException
TerminalsetCursor in interface TerminalIOExceptionpublic void moveCursor(int rows,
int columns)
throws IOException
TerminalmoveCursor in interface TerminalIOExceptionpublic void clear()
throws IOException
Terminalclear in interface TerminalIOExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.