advanced_console 0.0.1 advanced_console: ^0.0.1 copied to clipboard
Advanced console functionalities for Dart
Advanced console features for Dart.
With version 0.0.1, only ANSI text styling is supported.
Features #
- 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
),
Getting started #
TODO: List prerequisites and provide or point to information on how to start using the package.
Usage #
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"));
Additional information #
This package is work in progress, but you are welcome to leave your feedback!