pub fn spawn(config: SpawnConfig) -> Result<SpawnHandles, SpawnError>Expand description
Spawn a child under a PTY. Returns:
PtyHandlefor writing keystrokes + resizing.Arc<ArcSwap<TerminalSnapshot>>for the renderer to.load()each frame.- Reader task handle (aborted when the caller drops it).