Terminal class abstract
A virtual console terminal that can be written onto.
- Implementers
Constructors
- Terminal()
Properties
- backColor ↔ Color
-
The default foreground color used when a color is not specified.
getter/setter pair
- foreColor ↔ Color
-
The default foreground color used when a color is not specified.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
The number of rows of characters.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Vec
-
The number of columns and rows.
no setter
- width → int
-
The number of columns of characters.
no setter
Methods
-
clear(
) → void - Clears the terminal to backColor.
-
drawChar(
int x, int y, int charCode, [Color? fore, Color? back]) → void -
Writes a one-character string consisting of
charCode
at columnx
, rowy
usingfore
as the text color andback
as the background color. -
drawGlyph(
int x, int y, Glyph glyph) → void -
fill(
int x, int y, int width, int height, [Color? color]) → void -
Clears and fills the given rectangle with
color
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rect(
int x, int y, int width, int height) → Terminal -
toString(
) → String -
A string representation of this object.
inherited
-
writeAt(
int x, int y, String text, [Color? fore, Color? back]) → void -
Writes
text
starting at columnx
, rowy
usingfore
as the text color andback
as the background color.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited