ansicolor library Null safety

Copyright 2013 Google Inc. All Rights Reserved.

ANSI/XTERM SGR (Select Graphics Rendering) support for 256 colors. Note: if you're using the dart editor, these won't look right in the terminal; disable via color_disabled or use Eclipse with the Dart and AnsiConsol plugins!

Classes

AnsiPen
Pen attributes for foreground and background colors.

Constants

ansi_default → const String
@Deprecated('Will be removed in future releases')
ansiDefault
ansi_esc → const String
@Deprecated('Will be removed in future releases')
ansiEscape
ansiDefault → const String
Reset all colors and options for current SGRs to terminal defaults.
'${ansiEscape}0m'
ansiEscape → const String
ANSI Control Sequence Introducer, signals the terminal for new settings.
'\x1B['
ansiResetBackground → const String
Ansi codes that default the terminal's background color without altering the foreground, when printed.
'${ansiEscape}49m'
ansiResetForeground → const String
Ansi codes that default the terminal's foreground color without altering the background, when printed.
'${ansiEscape}39m'

Properties

ansiColorDisabled bool
Globally enable or disable AnsiPen settings.
read / write
color_disabled bool
@Deprecated('Will be removed in future releases in favor of [ansiColorDisabled]')@Deprecated('Will be removed in future releases in favor of [ansiColorDisabled]')read / write

Functions

resetBackground() String
@Deprecated('Will be removed in future releases')
resetForeground() String
@Deprecated('Will be removed in future releases')