Class TextBuffer
java.lang.Object
com.googlecode.lanterna.terminal.virtual.TextBuffer
This class is used to store lines of text inside of a terminal emulator. As used by
DefaultVirtualTerminal, it keeps
two TextBuffers, one for private mode and one for normal mode and it can switch between them as needed.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TextCharacterprivate final LinkedList<List<TextCharacter>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidclear()(package private) TextCharactergetCharacter(int lineNumber, int columnIndex) (package private) int(package private) ListIterator<List<TextCharacter>> getLinesFrom(int rowNumber) (package private) voidnewLine()(package private) voidremoveTopLines(int numberOfLinesToRemove) (package private) intsetCharacter(int lineNumber, int columnIndex, TextCharacter textCharacter) toString()
-
Field Details
-
DOUBLE_WIDTH_CHAR_PADDING
-
lines
-
-
Constructor Details
-
TextBuffer
TextBuffer()
-
-
Method Details
-
newLine
void newLine() -
removeTopLines
void removeTopLines(int numberOfLinesToRemove) -
clear
void clear() -
getLinesFrom
-
getLineCount
int getLineCount() -
setCharacter
-
getCharacter
-
toString
-