AnsiListener class abstract
A generic interface with typed methods for known ANSI escape codes.
To implement every method (recommended): implements AnsiListener
.
To implement some methods you care about: extends AnsiListener
:
class MyListener extends AnsiListener {
@override
void setBold() {
/* ... */
}
@override
void clearBold() {
/* ... */
}
}
- Implementers
Constructors
- AnsiListener()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearBold(
) → void - Clears text decoration style to exclude bold.
-
clearLine(
) → void - Clears the current cline.
-
clearLineAfter(
) → void - Clears the current line after the cursor location.
-
clearLineBefore(
) → void - Clears the current line before the cursor location.
-
clearScreen(
) → void - Clears the entire output screen.
-
clearScreenAfter(
) → void - Clears the entire output screen after the cursor location.
-
clearScreenBefore(
) → void - Clears the entire output screen before the cursor location.
-
clearUnderlined(
) → void - Clears text decoration style to exclude single/double .
-
hideCursor(
) → void - Hides the cursor.
-
moveCursorDown(
[int rows = 1]) → void -
Moves the cursor down
rows
. -
moveCursorLeft(
[int columns = 1]) → void -
Moves the cursor left
columns
. -
moveCursorNextLine(
[int lines = 1]) → void -
Moves the cursor to the beginning of the next
lines
. -
moveCursorPreviousLine(
[int lines = 1]) → void -
Moves the cursor to the beginning of the previous
lines
. -
moveCursorRight(
[int columns = 1]) → void -
Moves the cursor right
columns
. -
moveCursorUp(
[int rows = 1]) → void -
Moves the cursor up
rows
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetStyles(
) → void - Resets all styling to the default.
-
restoreCursor(
) → void - Restores the current cursor position from a previously saved position.
-
reverseColors(
) → void - Reverses the foreground and background colors.
-
saveCursor(
) → void - Saves the current cursor position.
-
setBackgroundColor1(
Ansi1BitColor color, {bool bright = false}) → void -
Sets subequent text's background as a 1-bit
color
. -
setBackgroundColor24(
Color color) → void -
Sets subsequent text's background as a 24-bit
color
. -
setBackgroundColor8(
Ansi8BitColor color) → void -
Sets subsequent text's background as a 8-bit
color
. -
setBold(
) → void - Sets text decoration style to include bold.
-
setCursorX(
int column) → void -
Moves the cursor to
column
. -
setCursorY(
int row) → void -
Moves the cursor to
row
. -
setDoubleUnderlined(
) → void - Sets text decoration style to include double .
-
setForegroundColor1(
Ansi1BitColor color, {bool bright = false}) → void -
Sets subsequent text's foreground as a 1-bit
color
. -
setForegroundColor24(
Color color) → void -
Sets subsequent text's foreground as a 24-bit
color
. -
setForegroundColor8(
Ansi8BitColor color) → void -
Sets subsequent text's foreground as a 8-bit
color
. -
setUnderlined(
) → void - Sets text decoration style to include .
-
showCursor(
) → void - Shows the cursor.
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String text) → void -
Writes a non-escape coded
text
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited