pub async fn select_cancel_initial(
        &mut self,
        term: &mut Terminal,
        cursor: usize,
        selected: InputDialogItem,
    ) -> Result<Option<TermString>, ServicesOff> {
        let mut selector = Selector::with_cancel(self, cursor, selected);
        selector.run(term).await?;
        Ok(selector.result_with_cancel())
    }
/// Gets user input with the user possibly canceling it, with given initial
/// cursor and given initially selected item.
Gets user input with the user possibly canceling it, with given initial
cursor and given initially selected item.
Gets user input with the user possibly canceling it with given initial cursor and given initially selected item .
pub async fn select_cancel_initial(
        &mut self,
        term: &mut Terminal,
        cursor: usize,
        selected: InputDialogItem,
    ) -> Result<Option<TermString>, ServicesOff> {
        let mut selector = Selector::with_cancel(self, cursor, selected);
        selector.run(term).await?;
        Ok(selector.result_with_cancel())
    }
pub async fn select_cancel_initial ( & mut self , term : & mut Terminal , cursor : usize , selected : InputDialogItem , ) -> Result < Option < TermString > , ServicesOff > { let mut selector = Selector :: with_cancel ( self , cursor , selected ) ; selector . run ( term ) . await ? ; Ok ( selector . result_with_cancel ( ) ) }
Gets user input with the user possibly canceling it, with given initial
cursor and given initially selected item.
Gets user input with the user possibly canceling it with given initial cursor and given initially selected item .
&mut self
term
&mut Terminal
cursor
usize
selected
InputDialogItem
&mut self
term
&mut Terminal
cursor
usize
selected
InputDialogItem