dart_console 0.1.0+2 copy "dart_console: ^0.1.0+2" to clipboard
dart_console: ^0.1.0+2 copied to clipboard

outdated

A helper library for command-line applications that need more control over input/output than the standard library provides.

example/main.dart

import 'package:dart_console/dart_console.dart';

main() {
  final console = Console();
  console.setBackgroundColor(ConsoleColor.blue);
  console.setForegroundColor(ConsoleColor.white);
  console.writeLine('Simple Demo', TextAlignment.center);
  console.resetColorAttributes();

  console.writeLine();

  console.writeLine('This console window has ${console.windowWidth} cols and '
      '${console.windowHeight} rows.');
  console.writeLine();

  console.writeLine('This text is left aligned.', TextAlignment.left);
  console.writeLine('This text is center aligned.', TextAlignment.center);
  console.writeLine('This text is right aligned.', TextAlignment.right);

  for (ConsoleColor color in ConsoleColor.values) {
    console.setForegroundColor(color);
    console.writeLine(color.toString().split('.').last);
  }
  console.resetColorAttributes();
}
118
likes
0
pub points
99%
popularity

Publisher

verified publisheronepub.dev

A helper library for command-line applications that need more control over input/output than the standard library provides.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on dart_console