Console class
The root of the console API
Constructors
- Console()
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- adapter ↔ ConsoleAdapter
-
getter/setter pair
- columns → int
-
no setter
- initialized ↔ bool
-
getter/setter pair
- onResize → Stream
-
no setter
- rows → int
-
no setter
Static Methods
-
altBuffer(
) → void -
centerCursor(
{bool row = true}) → void -
conceal(
) → void -
eraseDisplay(
[int type = 0]) → void - Erases the Display
-
eraseLine(
[int type = 0]) → void - Erases the Line
-
getBackgroundColor(
) → Color? -
getCursorPosition(
) → CursorPosition -
getTextColor(
) → Color? -
hideCursor(
) → void -
init(
) → void - Initializes the Console
-
moveCursor(
{int? row, int? column}) → void -
moveCursorBack(
[int times = 1]) → void -
Moves the Cursor Back the specified amount of
times
. -
moveCursorDown(
[int times = 1]) → void -
Moves the Cursor Down the specified amount of
times
. -
moveCursorForward(
[int times = 1]) → void -
Moves the Cursor Forward the specified amount of
times
. -
moveCursorUp(
[int times = 1]) → void -
Moves the Cursor Up the specified amount of
times
. -
moveToColumn(
int number) → void -
Moves the the column specified in
number
. -
nextLine(
[int times = 1]) → void -
normBuffer(
) → void -
overwriteLine(
String line) → void -
Overwrites the current line with
line
. -
previousLine(
[int times = 1]) → void -
readLine(
) → String? -
resetAll(
) → void -
resetBackgroundColor(
) → void -
resetTextColor(
) → void -
restoreCursor(
) → void -
reveal(
) → void -
saveCursor(
) → void -
setBackgroundColor(
int id, {bool xterm = false, bool bright = false}) → void -
setBlink(
bool blink) → void -
setBold(
bool bold) → void -
setCrossedOut(
bool crossedOut) → void -
setEncircled(
bool encircled) → void -
setFramed(
bool framed) → void -
setInverted(
bool flipped) → void -
setItalic(
bool italic) → void -
setOverlined(
bool overlined) → void -
setTextColor(
int id, {bool xterm = false, bool bright = false}) → void - Sets the Current Text Color.
-
setUnderline(
bool underline) → void -
sgr(
int id, [List< int> ? params]) → void -
showCursor(
) → void -
write(
String? content) → void -
writeANSI(
String after) → void
Constants
- ANSI_CODE → const String
- ANSI_ESCAPE → const String
- ANSI Escape Code