Advanced console features for Dart.
With version 0.0.1, only ANSI text styling is supported.
- SGR parameters (like: bold, italic, etc.),
- 3-bit and 4-bit colors (With
ConsoleColor
), - 8-bit colors (With
ConsoleColor256
), - 24-bit rgb colors (With
ConsoleColorRGB
),
Use the style
function to apply styles to text:
print(style("Hello World", ConsoleTextStyle(color: ConsoleColor.yellow, bold: true)));
Or use one of the many shortcuts:
print(red("I have a sunburn"));
print(bold("I'm fat"));
print(italic("I might tip over"));
This package is work in progress, but you are welcome to leave your feedback!