Struct requestty_ui::Input
source · [−]pub struct Input<P, B: Backend> { /* private fields */ }Expand description
A ui runner which implements the render cycle.
It renders and processes events with the help of a type that implements Prompt.
See run for more information
Implementations
Creates a new Input. This won’t do anything until it is run.
Hides the cursor while running the input. This won’t do anything until it is run.
What to do after receiving a Esc.
For OnEsc::Terminate - an Error::Aborted will be returned.
For OnEsc::SkipQuestion - the currently shown prompt will be cleared, and Ok(None)
will be returned.
For OnEsc::Ignore - no special behaviour will be applied to the Esc key. Like other
keys, the Esc key will be passed to the prompt to handle.