RenderStyle
classin packageklyn.gui.terminal
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
Fields
Constructors
| Modifier and Type |
Member |
Description |
| public |
RenderStyle |
Builds a render style with explicit colors and attributes. |
Methods
| Modifier and Type |
Member |
Description |
| public |
assign |
Copies all values from another style. |
| public |
copy |
Returns an independent copy of this style. |
| public |
sameAs |
Returns true when both styles describe the same visual state. |
| public |
setBackgroundsetBackground(red as Int, green as Int, blue as Int) as Void: |
Updates the background color. |
| public |
setForegroundsetForeground(red as Int, green as Int, blue as Int) as Void: |
Updates the foreground color. |
| public static |
terminalBase |
Returns the default terminal style used by the UI. |
| public |
toAnsi |
Serializes the style to a full ANSI SGR sequence. |
| public override |
toString |
Returns a readable debug representation. |