Skip to main content

spawn_app_process

Function spawn_app_process 

Source
pub fn spawn_app_process<A>(app: A, config: TerminalConfig) -> PaneProcess
where A: TerminalApp + Send + 'static, A::Command: Send + 'static,
Expand description

Spawn a TerminalApp in a background thread, returning a PaneProcess handle that the frame loop can use to exchange bytes with the app.

The app renders into an AnsiBackend whose output is sent through the stdout channel. Input is received through the input channel and dispatched to the app’s handle_input.