Lines Matching +full:test +full:- +full:docs
2 <h1><code>is-terminal</code></h1>
5 <strong>Test whether a given stream is a terminal</strong>
9 …="https://github.com/sunfishcode/is-terminal/actions?query=workflow%3ACI"><img src="https://github…
10 …<a href="https://crates.io/crates/is-terminal"><img src="https://img.shields.io/crates/v/is-termin…
11 …<a href="https://docs.rs/is-terminal"><img src="https://docs.rs/is-terminal/badge.svg" alt="docs.r…
15 is-terminal is a simple utility that answers one question:
23 On Unix-family platforms, this is effectively the same as the [`isatty`]
25 high-level stream types instead of raw file descriptors.
31 [PR \#54] port to windows-sys applied. The only additional difference is that
55 This library is tested on both Unix-family and Windows platforms.
57 To test it on a platform manually, use the provided `stdio` example program.
61 $ cargo run --example stdio
67 To test stdin, pipe some text to the program:
70 $ cat | cargo run --example stdio
76 To test stdout, pipe the program to something:
79 $ cargo run --example stdio | cat
85 To test stderr, pipe the program to something redirecting stderr:
88 $ cargo run --example stdio 2>&1 | cat
101 [`isatty`]: https://man7.org/linux/man-pages/man3/isatty.3.html
103 [I/O safety]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md