CursorStyle enum Cursors and Positioning
An escape code that sets the cursor style.
Note
Not all terminals support all cursor styles. If a style is not supported, the terminal will use the default cursor style.
- Inheritance
- Implemented types
- Available extensions
Values
- defaultUserShape → const CursorStyle
-
Default cursor shape configured by the user.
This is often the same as blinkingBlock.
const CursorStyle('0')
- blinkingBlock → const CursorStyle
-
A blinking block (
■
) cursor shape.This is often the same as defaultUserShape.
const CursorStyle('1')
- steadyBlock → const CursorStyle
-
A non-blinking block (
■
) cursor shape.The inverse of blinkingBlock.
const CursorStyle('2')
- blinkingUnderline → const CursorStyle
-
A blinking underline (
_
) cursor shape.const CursorStyle('3')
- steadyUnderline → const CursorStyle
-
A non-blinking underline (
_
) cursor shape.The inverse of blinkingUnderline.
const CursorStyle('4')
- blinkingBar → const CursorStyle
-
A blinking bar (
|
) cursor shape.const CursorStyle('5')
- steadyBar → const CursorStyle
-
A non-blinking bar (
|
) cursor shape.The inverse of blinkingBar.
const CursorStyle('6')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.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
-
toAnsiString(
) → String -
Available on Sequence, provided by the ToAnsiString extension
Returns the sequence as an escaped ANSI string. -
toString(
) → String -
A string representation of this object.
inherited
-
writeAnsiString(
StringSink out) → void -
Write as a UTF-16 ANSI escaped string to the given StringSink.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
CursorStyle> - A constant List of the values in this enum, in order of their declaration.