public class RenderCell extends Object:
One logical terminal cell.
A cell normally contains one Unicode scalar value. For terminal grapheme clusters such as emoji variation sequences (for example ⚙️) or emoji ZWJ sequences, text keeps the exact string that must be emitted to the real terminal, while glyph keeps the first scalar for compatibility with the rest of the renderer. Continuation cells used by wide glyphs have glyph == Char(0) and an empty text.
@since 1.0
| Modifier and Type | Member | Description |
|---|---|---|
| public | dirtydirty as Boolean = true |
No summary. |
| public | glyphglyph as Char = ' ' |
No summary. |
| public | stylestyle as RenderStyle = null |
No summary. |
| public | texttext as String = " " |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | RenderCellRenderCell(glyph as Char = ' ', style as RenderStyle = null): |
Builds a cell with a glyph and a style. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | clearclear(style as RenderStyle = null) as Void: |
Clears the cell with the provided style. |
| public | copycopy() as RenderCell: |
Returns a deep copy of the cell. |
| public | sameAssameAs(other as RenderCell) as Boolean: |
Returns true when both cells are visually identical. |
| public | setset(glyph as Char, style as RenderStyle) as Void: |
Overwrites the cell content with a single scalar glyph. |
| public | setContinuationsetContinuation(style as RenderStyle) as Void: |
Marks the cell as the second half of a wide glyph. |
| public | setTextsetText(text as String, glyph as Char, style as RenderStyle) as Void: |
Overwrites the cell content with an exact terminal grapheme cluster. |
| public override | toStringtoString() as String: |
Returns the plain character content of the cell. |