Skip to main content

pty_drain

Function pty_drain 

Source
fn pty_drain(
    login: Arc<Login>,
    reader: Box<dyn Read + Send>,
    answer_dsr: impl FnMut() + Send + 'static,
    success_transitioned: Arc<AtomicBool>,
) -> JoinHandle<Option<JoinHandle<()>>> ⓘ
Expand description

Read the PTY line by line into the session. Returns the detached confirm-and-save task of a login-success line.