public class RenderStyle extends Object:
Mutable terminal cell style.
The style tracks the visual state independently from ANSI escape codes so it can be diffed, snapshotted and tested before serialization.
@since 1.0
| Modifier and Type | Member | Description |
|---|---|---|
| public | bgBluebgBlue as Int = 0 |
No summary. |
| public | bgGreenbgGreen as Int = 0 |
No summary. |
| public | bgRedbgRed as Int = 0 |
No summary. |
| public | boldbold as Boolean = false |
No summary. |
| public | fgBluefgBlue as Int = 235 |
No summary. |
| public | fgGreenfgGreen as Int = 225 |
No summary. |
| public | fgRedfgRed as Int = 215 |
No summary. |
| public | inverseinverse as Boolean = false |
No summary. |
| public | italicitalic as Boolean = false |
No summary. |
| public | underlineunderline as Boolean = false |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | RenderStyle | Builds a render style with explicit colors and attributes. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | assignassign(other as RenderStyle) as Void: |
Copies all values from another style. |
| public | copycopy() as RenderStyle: |
Returns an independent copy of this style. |
| public | sameAssameAs(other as RenderStyle) as Boolean: |
Returns true when both styles describe the same visual state. |
| public | setBackground | Updates the background color. |
| public | setForeground | Updates the foreground color. |
| public static | terminalBaseterminalBase() as RenderStyle: |
Returns the default terminal style used by the UI. |
| public | toAnsitoAnsi() as String: |
Serializes the style to a full ANSI SGR sequence. |
| public override | toStringtoString() as String: |
Returns a readable debug representation. |