public interface VT100Renderer
Modifier and Type | Method and Description |
---|---|
int |
attributeMask(int id)
Get attribute mask.
|
void |
beep()
Play a message beep.
|
void |
eraseInDisplay(int mode)
Clear lines on screen.
|
void |
eraseInLine(int mode)
Clear characters in current line.
|
int |
getColumns()
Get number of columns.
|
int |
getCursorCol()
Get cursor current column position.
|
int |
getCursorRow()
Get cursor current row position.
|
void |
index()
IND -- Index ESC D
This sequence causes the active position to move downward one line without changing the
column position.
|
void |
moveCursorPos(int nRows,
int nCols)
Move cursor position with the amount of rows and columns.
|
void |
nextLine()
NEL -- Next Line ESC E
This sequence causes the active position to move to the first position on the next line
downward.
|
void |
reverseIndex()
RI -- Reverse Index ESC M
Move the active position to the same horizontal position on the preceding line.
|
void |
setAutoWrap(boolean autoWrap)
Set auto wrap mode.
|
void |
setCellText(char text,
int attribute,
int color)
Set cell text attributes and color.
|
void |
setCursorCol(int column)
Set cursor at column.
|
void |
setCursorPos(int row,
int col)
Set cursor position.
|
void |
setCursorVisible(boolean showCursor)
Set cursor visibility.
|
void |
setScrollRegion(int begLine,
int endLine)
Set scroll window.
|
void setCursorPos(int row, int col)
row
- Line number.col
- Column number.void moveCursorPos(int nRows, int nCols)
nRows
- Number of rows.nCols
- Number of columns.void setCellText(char text, int attribute, int color)
text
- Character that should be displayed.attribute
- Cell attributes.color
- Call color FG/BGvoid beep()
void eraseInDisplay(int mode)
mode
- An integer value representing a screen region:
0 - Erase from the active position to the end of the screen, inclusive (default)
1 - Erase from start of the screen to the active position, inclusive
2 - Erase all of the display -- all lines are erased, changed to single-width,
and the cursor does not move.void eraseInLine(int mode)
mode
- An integer value representing a line region:
0 - Erase from the active position to the end of the line, inclusive (default)
1 - Erase from the start of the line to the active position, inclusive
2 - Erase all of the line, inclusivevoid setCursorCol(int column)
column
- Column number.void nextLine()
void index()
void reverseIndex()
void setCursorVisible(boolean showCursor)
showCursor
- void setAutoWrap(boolean autoWrap)
autoWrap
- void setScrollRegion(int begLine, int endLine)
begLine
- Start line.endLine
- End line.int getCursorRow()
int getCursorCol()
int getColumns()
int attributeMask(int id)
id
- Attribute id.
0 - NORMAL 1 - BLINK 2 - BOLD 3 - UNDERLINE 4 - REVERSE