atty
are you or are you not a tty?
install
Add the following to your Cargo.toml
[]
= "0.2"
usage
extern crate atty;
use Stream;
testing
This library has been unit tested on both unix and windows platforms (via appveyor).
A simple example program is provided in this repo to test various tty's. By default.
It prints
To test std in, pipe some text to the program
|
To test std out, pipe the program to something
|
To test std err, pipe the program to something redirecting std err
|
Doug Tangren (softprops) 2015-2017