cli_menu 0.4.0 copy "cli_menu: ^0.4.0" to clipboard
cli_menu: ^0.4.0 copied to clipboard

A simple menu (picker) that works on the command line. Works on Linux, Mac and Windows. Supports choosing by arrows on ANSI terminals.

example/example.dart

import 'package:cli_menu/cli_menu.dart';

void main() {
  print('Pick favorite color:');
  final menu = Menu(['Red', 'Green', 'Orange', 'Fuchsia']);
  final result = menu.choose();
  print('You picked: $result');
}
18
likes
160
pub points
44%
popularity

Publisher

verified publisherfiliph.net

A simple menu (picker) that works on the command line. Works on Linux, Mac and Windows. Supports choosing by arrows on ANSI terminals.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cli_util

More

Packages that depend on cli_menu