basic_console 1.0.0+dev.2 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.
Features #
- Non-blocking input.
- Non-interrupting output.
Usage #
import 'dart:io';
import 'package:basic_console/console.dart';
final console = Console(stdin: stdin, stdout: stdout, prompt: '> ')..enable();
void main() {
console.onLine.listen((line) {
console.log('Non-interrupting message to console! Echo: $line');
});
}
Additional information #
For utf-8 support on Windows enable it in setting!
License #
- MIT License