CursorStyle class
The text style new text is written with (the SGR pen): colours as CellColor values and CellAttr bits. Not the cursor's shape.
Constructors
- CursorStyle({int foreground = 0, int background = 0, int attrs = 0})
- Creates a style; all zero is the default style.
Properties
- attrs ↔ int
-
The CellAttr bits.
getter/setter pair
- background ↔ int
-
The background colour, a CellColor value.
getter/setter pair
- foreground ↔ int
-
The foreground colour, a CellColor value.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBlink → bool
-
Whether the style is blinking.
no setter
- isBold → bool
-
Whether the style is bold.
no setter
- isFaint → bool
-
Whether the style is faint.
no setter
- isInverse → bool
-
Whether the style is inverse video.
no setter
- isInvisible → bool
-
Whether the style is invisible.
no setter
- isItalis → bool
-
Whether the style is italic (sic: xterm's name).
no setter
- isUnderline → bool
-
Whether the style is underlined.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Resets colours and attributes to the default.
-
resetBackgroundColor(
) → void - Resets the background to the default colour.
-
resetForegroundColor(
) → void - Resets the foreground to the default colour.
-
setBackgroundColor16(
int color) → void -
Sets the background to named colour
color(0–15). -
setBackgroundColor256(
int color) → void -
Sets the background to palette colour
color(0–255). -
setBackgroundColorRgb(
int r, int g, int b) → void -
Sets the background to the RGB colour
r,g,b. -
setBlink(
) → void - Sets blink.
-
setBold(
) → void - Sets bold.
-
setFaint(
) → void - Sets faint.
-
setForegroundColor16(
int color) → void -
Sets the foreground to named colour
color(0–15). -
setForegroundColor256(
int color) → void -
Sets the foreground to palette colour
color(0–255). -
setForegroundColorRgb(
int r, int g, int b) → void -
Sets the foreground to the RGB colour
r,g,b. -
setInverse(
) → void - Sets inverse video.
-
setInvisible(
) → void - Sets invisible.
-
setItalic(
) → void - Sets italic.
-
setStrikethrough(
) → void - Sets strikethrough.
-
setUnderline(
) → void - Sets underline.
-
toString(
) → String -
A string representation of this object.
inherited
-
unsetBlink(
) → void - Clears blink.
-
unsetBold(
) → void - Clears bold.
-
unsetFaint(
) → void - Clears faint.
-
unsetInverse(
) → void - Clears inverse video.
-
unsetInvisible(
) → void - Clears invisible.
-
unsetItalic(
) → void - Clears italic.
-
unsetStrikethrough(
) → void - Clears strikethrough.
-
unsetUnderline(
) → void - Clears underline.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- empty → CursorStyle
-
A shared default style. Mutable, as in xterm: do not change it.
final