run_pty

Function run_pty 

Source
pub fn run_pty(
    program: &Path,
    args: &[&str],
    cwd: &Path,
    home: &Path,
    input: &str,
) -> CmdOutput
Expand description

Runs a command in a PTY and captures output.

Notes:

  • PTY output is a merged stream (stdout+stderr); we populate stdout.
  • This helper is intentionally minimal; interactive parity tests can extend it to incremental reads/writes.