Skip to content
FutureBlitz

    Install

    Import std.term.screen

    Cell

    std.term.screen

    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)

    std/term/screen.fb, line 34

    • Public Field Text: String field #

      The grapheme cluster that shows there, a space where it's blank, or "" for a wide one's right half.

    • Public Field Look: Style field #

      How it looks.

    • Public Method ToString(): String method #

      Its text.

    Report an issue with this page or with FutureBlitz on GitHub.