euporie.console.app.in_terminal

euporie.console.app.in_terminal(render_cli_done: bool = False) AsyncGenerator[None, None]

Asynchronous context manager that suspends the current application and runs the body in the terminal.

async def f():
    async with in_terminal():
        call_some_function()
        await call_some_async_function()