fake-tty
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.
Example
let output = bash_command.output.unwrap;
assert!;
let _stdout: String = Stringfrom_utf8.unwrap;