[][src]Crate sentaku

Structs

SentakuItem

Structure for each item to be chosen by the user label will be displayed and value will be returned when the user select the item

Enums

SentakuAction
SentakuError

Error during wait_for_input

Functions

get_default_keymap

Get default keymap Key::Up: move cursor up Key::Down: move cursor down Key::Char('\n'): select current item Key::Ctrl('c'): cancel current selection

wait_for_input

Wait for user input and return an item user selects with default keymap. See also default_keymap

wait_for_input_with_keymap

Wait for user input and return an item user selects If the user cancels the input or error happens in stdio, it returns SentakuError. If items is an empty list, it also returns SentakuError.