public class TerminalFrame extends Object:
| Modifier and Type | Member | Description |
|---|---|---|
| public | cursorColcursorCol as Int = 0 |
No summary. |
| public | cursorRowcursorRow as Int = 0 |
No summary. |
| public | cursorVisiblecursorVisible as Boolean = false |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | heightheight as Int: |
No summary. |
| public readonly property | widthwidth as Int: |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TerminalFrameTerminalFrame(width as Int, height as Int, defaultStyle as RenderStyle = null): |
Builds a frame filled with spaces using the provided default style. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | cellcell(row as Int, col as Int) as RenderCell: |
Returns the cell at the given coordinate. |
| public | clearclear() as Void: |
Clears the frame with spaces and the default style. |
| public | contains | Returns true when the coordinate belongs to the frame. |
| public | copycopy() as TerminalFrame: |
Returns a deep copy of the frame. |
| public | copyRegioncopyRegion(row as Int, col as Int, width as Int, height as Int) as TerminalFrame: |
Returns a sub-frame copy. |
| public | defaultStyledefaultStyle() as RenderStyle: |
Returns the default style of the frame. |
| public | fillRect | Fills a rectangular region with the same glyph and style. |
| public | toAnsiTexttoAnsiText() as String: |
Returns the frame as ANSI text for debug snapshots. |
| public | toPlainTexttoPlainText() as String: |
Returns the frame as exact plain text, one line per row. |
| public | writeCellwriteCell(row as Int, col as Int, glyph as Char, style as RenderStyle = null) as Void: |
Writes one cell. |
| public | writeStyledTextwriteStyledText(row as Int, col as Int, text as String, style as RenderStyle = null, maxWidth as Int = -1) as Void: |
Writes plain text using a fixed style, without ANSI parsing. |
| public | writeText | Writes ANSI-capable text into the frame. |