Skip to content

@jsvision/core / Cell

Interface: Cell

Defined in: render/types.ts:63

A single screen cell. width distinguishes normal (1), wide-lead (2), and continuation (0) cells. A continuation cell emits no glyph.

Properties

attrs

attrs: number

Defined in: render/types.ts:67


bg

bg: Color

Defined in: render/types.ts:66


char

char: string

Defined in: render/types.ts:64


fg

fg: Color

Defined in: render/types.ts:65


width

width: 0 | 1 | 2

Defined in: render/types.ts:69

Display width: 1 = normal, 2 = lead of a wide glyph, 0 = trailing continuation.