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, wait
getSize, init, isEchoEnabled, read, reset, writeToStdErr, writeToStdErr, writeToStdErr, writeToStdOut, writeToStdOut, writeToStdOut
public void writeChar(TerminalCharacter character) throws IOException
Terminal
writeChar
in interface Terminal
IOException
public void writeChars(List<TerminalCharacter> chars) throws IOException
Terminal
writeChars
in interface Terminal
IOException
public CursorPosition getCursor()
public void setCursor(CursorPosition position) throws IOException
Terminal
setCursor
in interface Terminal
IOException
public void moveCursor(int rows, int columns) throws IOException
Terminal
moveCursor
in interface Terminal
IOException
public void clear() throws IOException
Terminal
clear
in interface Terminal
IOException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.