are you or are you not a tty?
Find them here
Add the following to your Cargo.toml
Cargo.toml
toml [dependencies] atty = "0.1"
Doug Tangren (softprops) 2015