with_terminal_scope

Function with_terminal_scope 

Source
pub fn with_terminal_scope<T>(
    operation: impl FnOnce() -> Result<T, ProgramStop>,
) -> Result<T, ProgramStop>
Expand description

Keep terminal stops visible for a complete consumer operation, including compatibility callers without an execution account. Nested calls share the existing terminal domain; a fresh domain is restored on return or unwind.