Struct term_transcript::PtyCommand [−][src]
pub struct PtyCommand { /* fields omitted */ }
This is supported on crate feature
portable-pty
only.Expand description
Command to spawn in a pseudo-terminal (PTY).
Examples
Since shell spawning is performed in a generic way,
PtyCommand
can be used as a drop-in replacement for Command
:
let transcript = Transcript::from_inputs(
&mut ShellOptions::new(PtyCommand::default()),
vec![UserInput::command(r#"echo "Hello world!""#)],
)?;
// do something with `transcript`...
Implementations
Creates a new command based on the executable.
This uses a reasonable default for the PTY size (19 character rows, 80 columns).
Sets the size of the PTY in characters.
Trait Implementations
type ShellProcess = PtyShell
type ShellProcess = PtyShell
Spawned shell process.
Spawns a shell process. Read more
Auto Trait Implementations
impl RefUnwindSafe for PtyCommand
impl Send for PtyCommand
impl Sync for PtyCommand
impl Unpin for PtyCommand
impl UnwindSafe for PtyCommand
Blanket Implementations
Mutably borrows from an owned value. Read more