Import std.term.screen
Cell
struct
Public Struct Cell Implements Hashable, Printable
One of a canvas's cells: the grapheme cluster that shows there, a space where it's blank, and how it looks. The right half of a wide one, which the cell before it shows, holds "".
Examples
Local canvas = Canvas(2, 1)
canvas.Print(0, 0, "a", Style(TermColor.Red))
Expect(canvas[0, 0].Text == "a" && canvas[0, 0].Look.Foreground == TermColor.Red)-
The grapheme cluster that shows there, a space where it's blank, or "" for a wide one's right half.
-
How it looks.
-
Its text.
Report an issue with this page or with FutureBlitz on GitHub.