Tui::Buffer
Constructors
Instance methods
Draw a box using BorderStyle enum
Legacy overload accepting Symbol for backwards compatibility
Draw a horizontal line
Draw a string at position (with Unicode width support)
Draw a vertical line
Fill a rectangle
Force redraw of a specific region
Set a cell with char and style (auto-detects wide characters) Returns the display width of the character (1 or 2)
Set a cell with grapheme and style (auto-detects wide graphemes) Returns the display width of the grapheme (1 or 2)
Set a wide character (handles 2-cell characters like emoji/CJK) Note: set(x, y, char, style) now auto-detects wide chars, so this is mainly for explicit use or backwards compatibility
Get buffer as simple grid for analysis (returns array of rows) Continuation cells (second half of wide chars) are skipped to match terminal display