VtCell class final
A cell of a Vt's screen: the text printed in it and the colors and attributes it was printed with.
A color is a number as Color packs one: 0 for the terminal's
default, 0x2000000 | index for an entry of the palette,
0x1000000 | 0xRRGGBB for 24-bit RGB.
Constructors
- VtCell()
Properties
- attrs ↔ int
-
The attributes,
Attr's bits: bold, italic, the kind of underline and the rest.getter/setter pair - bg ↔ int
-
The background's color;
0for the terminal's default.getter/setter pair - bgColor → Color
-
bg as a
Color:Color.defaultColorfor the terminal's own.no setter - fg ↔ int
-
The text's color;
0for the terminal's default.getter/setter pair - fgColor → Color
-
fg as a
Color:Color.defaultColorfor the terminal's own.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- image ↔ VtImage?
-
The sixel or iTerm2 image whose pixels the cell has, null for none.
getter/setter pair
- kitty ↔ VtImage?
-
The kitty placement over the cell, null for none.
getter/setter pair
- link ↔ String?
-
Hyperlink (OSC 8) of the cell, null for none.
getter/setter pair
- role ↔ int
-
0 = normal, 2 = leading half of a wide glyph, -1 = trailing half.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String
-
The grapheme cluster shown, a space for a blank cell; the trailing
half of a wide glyph (role -1) keeps the text it was blanked with.
getter/setter pair
- ul ↔ int
-
The underline's color (SGR 58);
0for the text's.getter/setter pair - ulColor → Color
-
ul as a
Color:Color.defaultColorfor the text's.no setter
Methods
-
blank(
int bgColor) → void -
Makes this cell a blank on the background
bgColor: a space without attributes, hyperlink or the pixels of an image. A kitty placement over it stays. -
copyFrom(
VtCell o) → void -
Makes this cell show what
oshows: its text, colors, attributes, hyperlink and images. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
The text and its style, as a snapshot with styles marks them
(
[bold red]a[/], seematchesScreenin package:twk_test).override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited