Crate sentaku

source ·

Modules

Structs

  • 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

Functions

  • 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
  • Get default keymap for multi select Key::Up: move cursor up Key::Down: move cursor down Key::Char('\n'): select current item Key::Ctrl('c'): cancel current selection
  • Wait for user input and return an item user selects with default keymap. See also default_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.