pub async fn select_cancel_initial(
        &self,
        term: &mut Terminal,
        initial: usize,
        cancel: bool,
    ) -> Result<Option<usize>, ServicesOff> {
        let mut selector = Selector::with_cancel(self, initial, cancel);
        selector.run(term).await?;
        Ok(selector.result_with_cancel())
    }
/// Asks for the user to select an item of the menu with a cancel option,
/// and sets the initial chosen option to the given one, together with a
/// paramter stating whether cancel option is currently chosen.
Asks for the user to select an item of the menu with a cancel option,
and sets the initial chosen option to the given one, together with a
paramter stating whether cancel option is currently chosen.
Asks for the user to select an item of the menu with a cancel option and sets the initial chosen option to the given one together with a paramter stating whether cancel option is currently chosen .
pub async fn select_cancel_initial(
        &self,
        term: &mut Terminal,
        initial: usize,
        cancel: bool,
    ) -> Result<Option<usize>, ServicesOff> {
        let mut selector = Selector::with_cancel(self, initial, cancel);
        selector.run(term).await?;
        Ok(selector.result_with_cancel())
    }
pub async fn select_cancel_initial ( & self , term : & mut Terminal , initial : usize , cancel : bool , ) -> Result < Option < usize > , ServicesOff > { let mut selector = Selector :: with_cancel ( self , initial , cancel ) ; selector . run ( term ) . await ? ; Ok ( selector . result_with_cancel ( ) ) }
Asks for the user to select an item of the menu with a cancel option,
and sets the initial chosen option to the given one, together with a
paramter stating whether cancel option is currently chosen.
Asks for the user to select an item of the menu with a cancel option and sets the initial chosen option to the given one together with a paramter stating whether cancel option is currently chosen .
&self
term
&mut Terminal
initial
usize
cancel
bool
&self
term
&mut Terminal
initial
usize
cancel
bool