Skip to main content

prepare_background_command

Function prepare_background_command 

Source
pub fn prepare_background_command(command: &mut Command)
Expand description

Detach command from the parent’s controlling terminal/console.

Used for background completion subprocesses so they cannot call tcsetattr / SetConsoleMode and corrupt reedline. Caller must also redirect stdin to null. No-op on platforms without a process API.