Struct term_transcript::PtyCommand
source · pub struct PtyCommand { /* private fields */ }
Available 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§
source§impl PtyCommand
impl PtyCommand
Trait Implementations§
source§impl Clone for PtyCommand
impl Clone for PtyCommand
source§fn clone(&self) -> PtyCommand
fn clone(&self) -> PtyCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConfigureCommand for PtyCommand
impl ConfigureCommand for PtyCommand
source§impl Debug for PtyCommand
impl Debug for PtyCommand
source§impl Default for PtyCommand
impl Default for PtyCommand
source§impl SpawnShell for PtyCommand
impl SpawnShell for PtyCommand
§type ShellProcess = PtyShell
type ShellProcess = PtyShell
Spawned shell process.
source§fn spawn_shell(&mut self) -> Result<SpawnedShell<Self>>
fn spawn_shell(&mut self) -> Result<SpawnedShell<Self>>
Spawns a shell process. Read more