public class TerminalBuffer extends AbstractTerminalBuffer
cols, csx, csy, cx, cy, rows
cursorInvalid, EMPTY_CELL
Constructor and Description |
---|
TerminalBuffer(int rows,
int cols)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(int chr,
Color color)
Add a character to the virtual terminal at the current cursor
position.
|
Cell |
cellAt(int row,
int col)
Get character at specified position.
|
void |
refresh(NativeRectangle rect)
Mark a rectangle as needing repainting.
|
void |
sync()
Synchronize the state of the physical terminal with the state of
the virtual terminal.
|
void |
updateScreen(ScreenData screen)
Perform a bulk output operation for the whole screen at once with
output masking when desired.
|
advanceCursor, append, box, clearArea, cursorAt, cursorRelocated, cursorStay, drawHBorder, drawLLCorner, drawLRCorner, drawULCorner, drawURCorner, drawVBorder, getScreenBitmap, getX, getY, hLine, render, screenHeight, screenWidth, setScreenBitmap, vLine
borderColor, getWindowId, hasBoxBorderCorners, isCursorInvalid, setCursorInvalid, widgetColor
public TerminalBuffer(int rows, int cols)
rows
- Number of rows in buffer.cols
- Number of columns in buffer.public void append(int chr, Color color)
append
in class BasePrimitives
chr
- The character to output.color
- Color.public void refresh(NativeRectangle rect)
rect
- rectangle to mark for repainting in screen coordinatespublic void sync()
public Cell cellAt(int row, int col)
cellAt
in class BasePrimitives
row
- Character row.col
- Character column.public void updateScreen(ScreenData screen)
updateScreen
in class BasePrimitives
screen
- Container for whole screen content and cursor position.