pub fn prepare_shell_command(
command: ShellCommand,
) -> Result<PreparedInput, InputPrepareError>Expand description
Prepare an intentional command line for a dispatcher that has just confirmed a shell owns the PTY foreground.
Shell syntax is preserved. Control characters are rejected so one action cannot smuggle extra terminal writes or framing sequences past the typed protocol. Submission remains a separate delayed write.