pub fn write_cli_streams<WOut, WErr>(
tree: &SceneTree,
cols: u16,
rows: u16,
diagnostic: Option<&str>,
stdout: &mut WOut,
stderr: &mut WErr,
) -> CliWriteStatusExpand description
Writes structured zero-ANSI static CLI output to stdout and optional diagnostics exclusively to stderr, handling BrokenPipe cleanly without panicking.
§Arguments
&SceneTree- Retained UI scene tree to render.u16- Target text width in columns.u16- Maximum text height in rows.Option<&str>- Optional diagnostic status message routed strictly tostderr.&mut WOut- Destination standard output writer.&mut WErr- Destination standard error writer.
§Returns
CliWriteStatus-Written,BrokenPipe, orIoError.