pub trait InTerminalAuto: InTerminalwhere
    Self: Sized,{
    // Required methods
    fn in_terminal(&self) -> Result<Self, DetectionError>;
    fn in_terminal_args<I, S>(&self, args: I) -> Result<Self, DetectionError>
       where I: IntoIterator<Item = S>,
             S: AsRef<OsStr>;
}
Expand description

Allows a Command to be executed in a terminal.
Works the same as the non-auto version, but detects the terminal automatically

Required Methods§

source

fn in_terminal(&self) -> Result<Self, DetectionError>

source

fn in_terminal_args<I, S>(&self, args: I) -> Result<Self, DetectionError>where I: IntoIterator<Item = S>, S: AsRef<OsStr>,

Implementations on Foreign Types§

source§

impl InTerminalAuto for Command

source§

fn in_terminal(&self) -> Result<Self, DetectionError>

source§

fn in_terminal_args<I, S>(&self, args: I) -> Result<Self, DetectionError>where I: IntoIterator<Item = S>, S: AsRef<OsStr>,

Implementors§