ui/buffer
library
Classes
-
Buffer
-
A 2D grid of cell data stored in parallel flat lists.
-
Compositor
-
Composites multiple layered buffers onto a single target buffer.
-
LayeredBuffer
-
A buffer positioned in a 2D space with a Z-index for layering.
Functions
-
blendColor(int top, int bottom)
→ int
-
Blends two ARGB colors (resolving
Color.ansi indices via legacy VGA when
blended under a translucent overlay).
-
graphemeWidth(String grapheme)
→ int
-
Returns the physical terminal column width of
grapheme (0, 1, or 2).
-
isWideCodePoint(int codePoint)
→ bool
-
Checks if a single code point represents a wide character.
-
isWideGrapheme(String grapheme)
→ bool
-
Returns true if the given grapheme cluster is a double-width (wide) character.
-
isZeroWidthCodePoint(int codePoint)
→ bool
-
Returns true if the given code point occupies 0 terminal cells.
-
isZeroWidthGrapheme(String grapheme)
→ bool
-
Returns true if the grapheme cluster represents a zero-width character
(non-spacing marks, format controls, zero-width spaces, or soft hyphens).