AnsiColor extension
Extensions to assist with color ANSI escape codes.
- on
Properties
- ansiParamsBackground → String
-
Available on Color, provided by the AnsiColor extension
The background ansi espace params for this Color.no setter - ansiParamsForeground → String
-
Available on Color, provided by the AnsiColor extension
The foreground ansi espace params for this Color.no setter
Methods
-
ansiWrap(
String string, {bool bg = false}) → String -
Available on Color, provided by the AnsiColor extension
Returnsstring
wrapped with ansiParamsForeground and defaultForeground or ansiParamsBackground and defaultBackground, depending onbg
.
Static Properties
Static Methods
Constants
- defaultBackground → const String
- The ANSI escape param to reset background color.
- defaultForeground → const String
- The ANSI escape param to reset foreground color.
- escapePrefix → const String
- The ANSI escape code prefix, used to start an ANSI parameter sequence.
- escapeSuffix → const String
- The ANSI escape code suffix, used to return to normal text output.
- notBlinking → const String
- The ANSI escape param to disable blinking (the default).
- notBold → const String
- The ANSI escape param to disable bold (the default).
- notHidden → const String
- The ANSI escape param to disable hidden (the default).
- notInverse → const String
- The ANSI escape param to disable inverse (the default).
- notUnderlined → const String
- The ANSI escape param to disable underline (the default).
- regexp → const String
- Regular Expression to match ansi codes.