Skip to main content

set_stdout_passthrough

Function set_stdout_passthrough 

Source
pub fn set_stdout_passthrough(enabled: bool) -> bool
Expand description

Enable or disable direct stdout writes for CLI-style runs.

The VM normally captures stdout in-memory so tests and embedding callers can inspect it after execution. Interactive CLI programs need prompts to appear before read_line() blocks, so harn run enables this mode and streams print/println/log immediately.