basic_console 1.0.0+dev.2 copy "basic_console: ^1.0.0+dev.2" to clipboard
basic_console: ^1.0.0+dev.2 copied to clipboard

Very simple console not blocking input package, allows you to send async messages while getting user-input.

example/example.dart

import 'dart:async';
import 'dart:io';

import 'package:basic_console/basic_console.dart';

final console = Console(stdin: stdin, stdout: stdout, prompt: '> ')..enable();

void main() {
  Timer.periodic(const Duration(seconds: 2), (timer) {
    console.log('Async message.');
  });

  console.onLine.listen((event) {
    console.log('New line: $event');
  });
}
0
likes
150
pub points
0%
popularity

Publisher

unverified uploader

Very simple console not blocking input package, allows you to send async messages while getting user-input.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on basic_console