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

A simple command-line menu (picker) compatible with Linux, Mac and Windows. It supports selection by using arrow keys 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
140
pub points
61%
popularity

Publisher

verified publisherfiliph.net

A simple command-line menu (picker) compatible with Linux, Mac and Windows. It supports selection by using arrow keys 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