Rust library to run a command in bash, pretending to be a tty. This means that the command will assume that terminal colors and other terminal features are available.
Note that some programs might still behave differently than they would in a real terminal. For example, on my system, ls
always displays colors in the terminal, but requires --color=auto
when executed in fake-tty.
```rust let output = faketty::bashcommand("ls --color=auto").output().unwrap(); assert!(output.status.success());
let stdout: String = String::fromutf8(output.stdout).unwrap(); ```