Skip to main content

execute_core

Function execute_core 

Source
pub async fn execute_core<S: TerminalSetup, E: EventSource>(
    wizard: &mut Wizard,
    env: &SetupEnv,
    setup: &mut S,
    events: &mut E,
) -> Result<()>
Expand description

Set up the terminal, run the loop, tear the terminal down, then apply.

The teardown happens before anything is printed: writing a summary while the alternate screen is still up puts it somewhere the user will never see.