Cell

Cell represents the contents of a single character cell on screen, or in some cases two adjacent cells. Terminals are expected to have a uniform display width for each cell, and to have a fixed number of cell columns and rows. (We assume fixed pitch fonts.) The occasion when a double wide character is present occurs for certain East Asian characters that require twice as much horizontal space to display as others. (This can also occur with some emoji.)

Constructors

this
this(C c, Style st)
Undocumented in source.
this
this(S s, Style st)
Undocumented in source.

Members

Properties

text
const(string) text [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
text
const(string) text [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
ubyte width [@property getter]

The display width of the contents of the cell, which will be 1 (typical western characters, as well as ambiguous characters), 2 (typical CJK characters), or in some cases 0 (empty content, control characters, zero-width whitespace). Note that cells immediately following a cell with a wide character will themselves generally have no content (as their screen display real-estate is consumed by the wide character.)

Variables

style
Style style;

styling for the cell

Meta