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 TextBuffer
s, one for private mode and one for normal mode and it can switch between them as needed.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TextCharacter
private final LinkedList
<List<TextCharacter>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
clear()
(package private) TextCharacter
getCharacter
(int lineNumber, int columnIndex) (package private) int
(package private) ListIterator
<List<TextCharacter>> getLinesFrom
(int rowNumber) (package private) void
newLine()
(package private) void
removeTopLines
(int numberOfLinesToRemove) (package private) int
setCharacter
(int lineNumber, int columnIndex, TextCharacter textCharacter) toString()
-
Field Details
-
DOUBLE_WIDTH_CHAR_PADDING
-
lines
-
-
Constructor Details
-
TextBuffer
TextBuffer()
-
-
Method Details