core/src/ansi_color
library
Classes
-
AnsiColor
-
Helper class to assist in printing text to the console with a color.
Functions
-
black(String text, {AnsiColor background = AnsiColor.white, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
blue(String text, {AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
cyan(String text, {AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
green(String text, {AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
grey(String text, {double level = 0.5, AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
magenta(String text, {AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
orange(String text, {AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
red(String text, {AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
white(String text, {AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.
-
yellow(String text, {AnsiColor background = AnsiColor.none, bool bold = true})
→ String
-
Wraps the passed text with the ANSI escape sequence for
the color red.
Use this to control the color of text when printing to the
console.