Skip to main content

hide_console_window

Function hide_console_window 

Source
pub fn hide_console_window(cmd: &mut Command)
Expand description

Start cmd without a console window, so an agent’s shell calls do not flash consoles across the desktop on Windows (issue #228).

The tokio twin of leviath_sys::hide_console_window, which takes a std::process::Command; as_std_mut reaches the one tokio wraps, so the flag has a single implementation rather than a second copy of the #[cfg]. A no-op everywhere but Windows. Only for a child whose stdio is piped, which is every caller here.