termenu-2.2.1 has been yanked.
Termenu
fzf-like terminal ui api for rust
Demo

Install
Add this to your Cargo.toml:
[]
= "2.2.1" # use latest version
Or with no-pipe feature, check Crate Features for more information.:
[]
= { = "2.2.1", = ["no-pipe"], = false }
This crate also provides a binary(like fzf), you can install it with:
Examples
check examples folder
# basic example
# complex example
Use as a library
Use as a binary
termenu binary is similar to fzf, but it's quite simple and has fewer features.
It only reads from stdin and prints the selected item to stdout.
Use it like this:
# basic
|
# more complicated
Crate Features
- no-pipe
This crate depends on
crossterm, by default I enableduse-dev-ttyfeature oncrosstermto support pipe input.
If you don't need to use pipe input, or this feature causes some problems, you can disable it.
In that way,termenuwill only depend oncrosstermwithout any features.
NOTE
- Currently, termenu does not support window resizing.