TUI input library supporting multiple backends, tui-rs and ratatui
Dependency updates.
Breaking change: See crossterm breaking changes, specifically tui_input::backend::crossterm::write will return std::io::Result instead of crossterm::Result.
visual_cursor
to make it easy for handling multispace characters (Japanese, Chinese) better in tui-rs ~ by @Elvyria.visual_scroll
to accompany visual_cursor
in tui-rs ~ @sayanarijit.to_input_request()
now takes a reference instead of an owned event.EventHandler
trait in each backend to enable passing events directly to input.handle_event()
instead of using to_input_request()
.Added support more termion keys.
See this release for crossterm: v0.5.0
Following keys are now supported in crossterm
Added a kew input request
\t
). Tab characters will be ignored.let input = Input::new("Hello");
let input: Input = "Hello".into();
let input: Input = String::new("Hello").into();
let value: String = input.into();
println!("{}", input);
input.reset();
to reset the values.StateChanged
has returned.InputResponse
is now an alias to Option<StateChanged>
.