Console Utility Library
A simple Rust library for console-based user input and option selection.
Input Function
The input
function reads user input from the console. It prompts the user with a message, reads a line of input, and returns an Option<String>
.
Usage
use input;
Select Function
The select
function allows the user to interactively select options from a list. It uses arrow keys or 'w' and 's' keys for navigation, spacebar for selection, and Enter to confirm. It returns an Option<Vec<bool>>
indicating which options were selected.
Usage
use select;
For more detailed documentation, please refer to the Rust doc generated documentation
.