Ansi class

A small utility class to make it easier to work with common ANSI escape sequences.

Constructors

Ansi(bool useAnsi)

Properties

backspace String
no setter
blue String
no setter
bold String
no setter
bullet String
no setter
cyan String
no setter
gray String
no setter
green String
no setter
hashCode int
The hash code for this object.
no setterinherited
magenta String
no setter
noColor String
no setter
none String
no setter
red String
no setter
reversed String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useAnsi bool
final
yellow String
no setter

Methods

emphasized(String message) String
Display message in an emphasized format.
error(String message) String
Display message in an error (red) format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subtle(String message) String
Display message in an subtle (gray) format.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

terminalSupportsAnsi bool
Return whether the current stdout terminal supports ANSI escape sequences.
no setter